Skip to content

Commit

Permalink
Merge pull request #17 from joemiller/update-goreleaser
Browse files Browse the repository at this point in the history
update goreleaser config and add a goreleaser test to non-master builds
  • Loading branch information
joemiller committed Apr 11, 2020
2 parents abf4e16 + a696803 commit f0a87d3
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 9 deletions.
16 changes: 8 additions & 8 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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}}
Expand All @@ -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
Expand Down Expand Up @@ -111,4 +111,4 @@ nfpms:
name_template: "{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}"
replacements:
386: i386
arm: armel
arm: armel
11 changes: 10 additions & 1 deletion azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down Expand Up @@ -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
Expand Down

0 comments on commit f0a87d3

Please sign in to comment.