From 205f09e73f482d854e29437b85c6ac68ce48cde4 Mon Sep 17 00:00:00 2001 From: John Reese Date: Fri, 16 Apr 2021 12:10:45 -0400 Subject: [PATCH] Prepare 0.24.0 release --- .dockerignore | 2 -- .github/workflows/release.yaml | 8 ++++++-- .goreleaser.yml | 24 ++++++++---------------- 3 files changed, 14 insertions(+), 20 deletions(-) diff --git a/.dockerignore b/.dockerignore index fa762eed77..6dfe2ed090 100644 --- a/.dockerignore +++ b/.dockerignore @@ -1,10 +1,8 @@ -.circleci .git .github docs conftest* -Makefile README.md CODE_OF_CONDUCT.md diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 76d74a721c..50ac77cb7e 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -30,5 +30,9 @@ jobs: VERSION: ${{ steps.get-version.outputs.VERSION }} run: make push TAG=$VERSION - - name: publish binaries - run: curl -sL https://git.io/goreleaser | bash + - name: release + uses: goreleaser/goreleaser-action@v2 + with: + args: release --rm-dist + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.goreleaser.yml b/.goreleaser.yml index 33076f576f..b15646adc5 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -1,6 +1,7 @@ before: hooks: - - go mod download + - go mod download + builds: - main: ./main.go env: @@ -16,6 +17,7 @@ builds: - "-s" - "-w" - "-X github.com/open-policy-agent/conftest/internal/commands.version={{.Version}}" + archives: - replacements: darwin: Darwin @@ -31,31 +33,21 @@ archives: - LICENSE - README.md - plugin/*.sh + checksum: name_template: 'checksums.txt' + snapshot: name_template: "{{ .Tag }}-next" + changelog: sort: asc filters: exclude: - '^docs:' - '^test:' -brews: -- tap: - owner: instrumenta - name: homebrew-instrumenta - folder: Formula - description: "Test your configuration using Open Policy Agent" - homepage: "https://github.com/open-policy-agent/conftest" - test: | - system "#{bin}/conftest --version" -scoop: - bucket: - owner: instrumenta - name: scoop-instrumenta - description: "Test your configuration using Open Policy Agent" - homepage: "https://github.com/open-policy-agent/conftest" + +# Publishes the deb and rpm files to the GitHub releases page. nfpms: - bindir: /usr/bin description: "Test your configuration using Open Policy Agent"