generated from ekristen/go-project-template
-
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
943a11e
commit 82b0559
Showing
8 changed files
with
30 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,34 +23,34 @@ jobs: | |
release: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4 | ||
if: github.event_name == 'pull_request' | ||
with: | ||
fetch-depth: 0 | ||
ref: ${{ github.event.pull_request.head.ref }} | ||
- uses: actions/checkout@v4 | ||
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4 | ||
if: github.event_name != 'pull_request' | ||
with: | ||
fetch-depth: 0 | ||
- name: setup-go | ||
uses: actions/setup-go@v5 | ||
uses: actions/setup-go@41dfa10bad2bb2ae585af6ee5bb4d7d973ad74ed # v5 | ||
with: | ||
go-version: 1.23.x | ||
- uses: anchore/sbom-action/[email protected] | ||
- uses: anchore/sbom-action/download-syft@1ca97d9028b51809cf6d3c934c3e160716e1b605 # v0.17.5 | ||
- name: setup qemu | ||
id: qemu | ||
uses: docker/setup-qemu-action@v3 | ||
uses: docker/setup-qemu-action@49b3bc8e6bdd4a60e6116a5414239cba5943d3cf # v3 | ||
- name: setup docker buildx | ||
id: buildx | ||
uses: docker/setup-buildx-action@v3 | ||
uses: docker/setup-buildx-action@c47758b77c9736f4b2ef4073d4d51994fabfe349 # v3 | ||
- name: Login to GitHub Container Registry | ||
uses: docker/login-action@v3 | ||
uses: docker/login-action@9780b0c442fbb1117ed29e0efdff1e18412f7567 # v3 | ||
with: | ||
registry: ghcr.io | ||
username: ${{ github.actor }} | ||
password: ${{ secrets.GITHUB_TOKEN }} | ||
- name: install cosign | ||
uses: sigstore/cosign-installer@v3 | ||
uses: sigstore/cosign-installer@dc72c7d5c4d10cd6bcb8cf6e3fd625a9e5e537da # v3 | ||
- name: install quill | ||
env: | ||
QUILL_VERSION: 0.4.1 | ||
|
@@ -72,7 +72,7 @@ jobs: | |
run: | | ||
echo "GORELEASER_ARGS=--snapshot --skip publish --skip sign" >> $GITHUB_ENV | ||
- name: setup-quill | ||
uses: 1password/load-secrets-action@v2 | ||
uses: 1password/load-secrets-action@581a835fb51b8e7ec56b71cf2ffddd7e68bb25e0 # v2 | ||
# Extra Safeguard - This ensures the secrets are only loaded on tag and a tag that the repo owner triggered | ||
if: startsWith(github.ref, 'refs/tags/') == true && github.actor == 'ekristen-dev[bot]' | ||
with: | ||
|
@@ -85,7 +85,7 @@ jobs: | |
QUILL_SIGN_PASSWORD: ${{ secrets.OP_QUILL_SIGN_PASSWORD }} | ||
QUILL_SIGN_P12: ${{ secrets.OP_QUILL_SIGN_P12 }} | ||
- name: run goreleaser | ||
uses: goreleaser/goreleaser-action@v6 | ||
uses: goreleaser/goreleaser-action@286f3b13b1b49da4ac219696163fb8c1c93e1200 # v6 | ||
with: | ||
distribution: goreleaser | ||
version: latest | ||
|
@@ -98,7 +98,7 @@ jobs: | |
docker images --format "{{.Repository}}:{{.Tag}}" | grep "${{ github.repository }}" | xargs -L1 docker push | ||
- name: upload artifacts | ||
if: github.event.pull_request.base.ref == 'main' | ||
uses: actions/upload-artifact@v4 | ||
uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4 | ||
with: | ||
name: binaries | ||
path: releases/*.tar.gz |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters