Skip to content

Commit

Permalink
Merge pull request #31 from pantheon-systems/plat-1191_fix-rpm
Browse files Browse the repository at this point in the history
goreleaser: pin to v0.119.0 until the missing rpm release tag bug is fixed
  • Loading branch information
joemiller authored Oct 21, 2019
2 parents de62496 + 0348bc2 commit c843e4a
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 24 deletions.
3 changes: 2 additions & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@ jobs:
xargs curl -o ~/autotag -L \
&& chmod 755 ~/autotag
- run: ~/autotag
- run: curl -sL https://git.io/goreleaser | bash -s -- --parallelism=2
# TODO: unpin after release tag bug is fixed: https://github.com/goreleaser/goreleaser/issues/1213
- run: curl -sL https://git.io/goreleaser | VERSION=v0.119.0 bash -s -- --parallelism=2
- store_artifacts:
path: /home/circleci/pauditd/dist
- persist_to_workspace:
Expand Down
51 changes: 28 additions & 23 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,43 +10,48 @@ builds:
- linux
goarch:
- amd64
archive:
replacements:
linux: Linux
amd64: x86_64

archives:
- id: tarball
replacements:
linux: Linux
amd64: x86_64

checksum:
name_template: 'checksums.txt'

snapshot:
name_template: "{{ .Tag }}-next"

changelog:
sort: asc
filters:
exclude:
- '^docs:'
- '^test:'
- Merge pull request
- Merge branch
- '^docs:'
- '^test:'
- Merge pull request
- Merge branch

## generate RPM and DEB packages
nfpm:
vendor: "Pantheon Systems"
homepage: "https://github.com/pantheon-systems/pauditd"
maintainer: engineering <engineering@pantheon.io>
description: "go alternative to auditd"
license: MIT
formats:
- rpm
overrides:
rpm:
name_template: "{{ .ProjectName }}-{{ .Version }}-{{ .Timestamp }}-{{ .Arch }}"
replacements:
amd64: x86_64
nfpms:
-
formats:
- rpm
vendor: "Pantheon Systems"
homepage: "https://github.com/pantheon-systems/pauditd"
maintainer: engineering <engineering@pantheon.io>
description: "go alternative to auditd"
license: MIT
overrides:
rpm:
name_template: "{{ .ProjectName }}-{{ .Version }}-{{ .Timestamp }}-{{ .Arch }}"
replacements:
amd64: x86_64

## build and push
dockers:
-
dockerfile: Dockerfile
binaries:
binaries:
- pauditd
goos: linux
goarch: amd64
Expand Down
3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,9 @@ push-circle: setup-quay
push:
docker push $(IMAGE)

snapshot:
goreleaser --snapshot --rm-dist --debug

setup-quay:: ## setup docker login for quay.io
ifdef CIRCLE_BUILD_NUM
@$(QUAY) > /dev/null
Expand Down

0 comments on commit c843e4a

Please sign in to comment.