Skip to content

Commit

Permalink
add goreleaser config
Browse files Browse the repository at this point in the history
  • Loading branch information
lsjostro committed Feb 7, 2024
1 parent 4fde873 commit 3912c2e
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 6 deletions.
15 changes: 9 additions & 6 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,12 @@ jobs:
goreleaser:
runs-on: shelmangroup-default
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
sparse-checkout: |
flake.lock
flake.nix
.envrc
- uses: cachix/install-nix-action@v22
with:
Expand All @@ -16,11 +21,9 @@ jobs:
with:
use_nix_profile: true

- uses: actions/checkout@v4
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v4
with:
distribution: goreleaser
version: latest
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
KO_DOCKER_REPO: ghcr.io/shelmangroup/envoy-oidc-authserver
run: goreleaser release --clean
23 changes: 23 additions & 0 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
before:
hooks:
- task buf:generate

builds:
- env: ["CGO_ENABLED=0"]
binary: envoy-oidc-authserver
goos:
- darwin
- linux
goarch:
- amd64
- arm64

kos:
- repository: ghcr.io/shelmangroup/envoy-oidc-authserver
tags:
- "{{.Version}}"
- latest
bare: true
platforms:
- linux/amd64
- linux/arm64
1 change: 1 addition & 0 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
go-task
golangci-lint
golines
goreleaser
gotestsum
jless
ko
Expand Down

0 comments on commit 3912c2e

Please sign in to comment.