--- kind: pipeline name: default steps: - name: tags image: alpine/git commands: - git fetch --tags - name: lint image: golangci/golangci-lint:v1.42.0 commands: - make lint depends_on: - tags - name: test image: golang:1.17 commands: - make test depends_on: - tags - lint - name: build image: goreleaser/goreleaser:v0.176.0 commands: - make build depends_on: - tags - lint - test when: event: exclude: - tag - name: release image: goreleaser/goreleaser:v0.176.0 environment: GITHUB_TOKEN: from_secret: github_token commands: - goreleaser release --rm-dist depends_on: - tags - lint - test when: event: - tag