diff --git a/.goreleaser.yml b/.goreleaser.yml index e1b4a5e..bed7928 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -28,10 +28,10 @@ builds: - darwin goarch: - amd64 + # TODO: find a way to codesign from linux and integrate into azure pipelines ci/cd # hooks: # post: ./macos-codesign.sh - - binary: vault-token-helper id: linux ldflags: -s -w -X github.com/joemiller/vault-token-helper/cmd.version={{.Version}}+{{.ShortCommit}} @@ -46,14 +46,14 @@ changelog: sort: asc filters: exclude: - - '^docs:' - - '^test:' - - Merge pull request - - Merge branch + - "^docs:" + - "^test:" + - Merge pull request + - Merge branch # GPG signing -sign: - artifacts: checksum +signs: + - artifacts: checksum archives: # binary-only releasess - all platforms @@ -111,4 +111,4 @@ nfpms: name_template: "{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}" replacements: 386: i386 - arm: armel \ No newline at end of file + arm: armel diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 9dad61a..86403f1 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -11,7 +11,7 @@ pr: # run pipeline on PRs resources: containers: - container: linux - image: golang:1.12 + image: golang:1.14 # XXX: hack to install sudo inside the docker container - https://github.com/Microsoft/azure-pipelines-agent/issues/2043 options: "--name ci-container -v /usr/bin/docker:/tmp/docker:ro" @@ -66,6 +66,15 @@ stages: CI: "true" displayName: make test + - stage: release_test + jobs: + - job: release_test + pool: + vmImage: 'ubuntu-16.04' # this is the only pool image that can run linux containers - https://docs.microsoft.com/en-us/azure/devops/pipelines/process/container-phases?view=azure-devops&tabs=yaml + steps: + - script: make snapshot + displayName: make snapshot + - stage: release jobs: - job: release