Skip to content

Commit

Permalink
feat: publish ko built images to ghcr
Browse files Browse the repository at this point in the history
  • Loading branch information
mikhailswift committed Jun 22, 2023
1 parent 8adff10 commit 273ce36
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@ jobs:
GO111MODULE=off go get github.com/mattn/goveralls
$(go env GOPATH)/bin/goveralls -coverprofile=profile.cov -service=github
release:
permissions:
id-token: write
Expand All @@ -65,10 +64,11 @@ jobs:
uses: actions/checkout@v2
with:
fetch-depth: 0

- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.19
go-version: 1.19.x
- uses: actions/cache@v2
with:
path: |
Expand All @@ -77,6 +77,7 @@ jobs:
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- name: Download GoReleaser
run: go install github.com/goreleaser/goreleaser@latest

Expand Down
11 changes: 11 additions & 0 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,3 +39,14 @@ release:
prerelease: auto
github:
owner: "{{ .Env.GITHUB_REPOSITORY_OWNER }}"
kos:
- repository: ghcr.io/testifysec/witness
tags:
- '{{.Version}}'
- latest
bare: true
preserve_import_paths: false
creation_time: '{{.CommitTimestamp}}'
platforms:
- linux/amd64
- linux/arm64

0 comments on commit 273ce36

Please sign in to comment.