Skip to content

Commit

Permalink
Prepare 0.24.0 release
Browse files Browse the repository at this point in the history
  • Loading branch information
jpreese committed Apr 16, 2021
1 parent b627663 commit 205f09e
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 20 deletions.
2 changes: 0 additions & 2 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
.circleci
.git
.github

docs
conftest*

Makefile
README.md
CODE_OF_CONDUCT.md
8 changes: 6 additions & 2 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
24 changes: 8 additions & 16 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
before:
hooks:
- go mod download
- go mod download

builds:
- main: ./main.go
env:
Expand All @@ -16,6 +17,7 @@ builds:
- "-s"
- "-w"
- "-X github.com/open-policy-agent/conftest/internal/commands.version={{.Version}}"

archives:
- replacements:
darwin: Darwin
Expand All @@ -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"
Expand Down

0 comments on commit 205f09e

Please sign in to comment.