diff --git a/.circleci/config.yml b/.circleci/config.yml index dbd3473..42e3f8d 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -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: diff --git a/.goreleaser.yml b/.goreleaser.yml index 11c2f4b..5fa2cd1 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -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 - 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 + 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 diff --git a/Makefile b/Makefile index bd237fe..bee1747 100644 --- a/Makefile +++ b/Makefile @@ -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