--- kind: pipeline type: docker name: default clone: disable: true steps: - name: clone image: alpine/git commands: - git clone https://github.com/sensu/sensu-go.git . - git checkout $DRONE_TAG when: event: tag - name: create_dir image: alpine commands: - mkdir bin when: event: tag - name: build-linux-amd64 image: golang commands: - go build -o bin/go-check-plugins-$OS-$ARCH environment: GOOS: linux GOARCH: amd64 OS: linux ARCH: amd64 when: event: tag - name: build-linux-arm64 image: golang commands: - go build -o bin/go-check-plugins-$OS-$ARCH environment: GOOS: linux GOARCH: arm64 OS: linux ARCH: arm64 when: event: tag - name: build-linux-arm image: golang commands: - go build -o bin/go-check-plugins-$OS-$ARCH environment: GOOS: linux GOARCH: arm OS: linux ARCH: armhf when: event: tag - name: build-netbsd-amd64 image: golang commands: - go build -o bin/go-check-plugins-$OS-$ARCH environment: GOOS: netbsd GOARCH: amd64 OS: netbsd ARCH: amd64 when: event: tag - name: create_archive image: alpine commands: - tar -czvf go-check-plugins-$DRONE_TAG.tar.gz bin when: event: tag - name: release image: plugins/gitea-release settings: base_url: https://git.paulbsd.com api_key: from_secret: gitea_token files: "*.tar.gz" checksum: - sha256 - sha512 when: event: tag