Skip to content

Commit

Permalink
Add Ko build for OCI image
Browse files Browse the repository at this point in the history
  • Loading branch information
strideynet committed Aug 30, 2024
1 parent 9032891 commit a6623b8
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 6 deletions.
11 changes: 5 additions & 6 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,21 +6,20 @@ on:

permissions:
contents: write
packages: write

jobs:
goreleaser:
runs-on: ubuntu-latest
steps:
-
name: Checkout
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
-
name: Set up Go
- name: Set up Go
uses: actions/setup-go@v5
-
name: Run GoReleaser
- uses: ko-build/setup-ko@v0.6
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v6
with:
# either 'goreleaser' (default) or 'goreleaser-pro'
Expand Down
11 changes: 11 additions & 0 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,3 +44,14 @@ changelog:
exclude:
- "^docs:"
- "^test:"

kos:
- repository: ghcr.io/strideynet/spiffe-pinger
tags:
- "{{.Version}}"
- latest
bare: true
preserve_import_paths: false
platforms:
- linux/amd64
- linux/arm64

0 comments on commit a6623b8

Please sign in to comment.