--- kind: pipeline name: default type: docker platform: os: linux arch: amd64 clone: image: reg.int.it2000.com.cn/devops/git tags: true skip_verify: true steps: - name: build image: reg.int.it2000.com.cn/library/golang:1.15.6-buster volumes: - name: deps path: /go environment: GO111MODULE: on GOPROXY: https://goproxy.io commands: - GOOS=linux GOARCH=amd64 go build -o tele-recv-linux - GOOS=windows GOARCH=amd64 CGO_ENABLED=1 CXX=x86_64-w64-mingw32-g++ CC=x86_64-w64-mingw32-gcc go build -o tele-recv-win64.exe - tar cvzf tele-recv-linux-0.0.4.tar.gz tele-recv-linux tele-recv-win64.exe telegram.yaml - name: release image: plugins/gitea-release volumes: - name: certs path: /etc/ssl/certs settings: api_key: fe1e1a8dd77de7452a3f473984c7ac6fe6c5abaf base_url: https://gitea.int.it2000.com.cn title: 0.0.4 files: - tele-recv-linux-0.0.4.tar.gz checksum: - sha256 when: event: tag volumes: - name: deps host: path: /opt/go - name: certs host: path: /etc/ssl/certs - name: docker host: path: /var/run/docker.sock