Skip to content

Commit 347cae9

Browse files
feat: adds latest tag and sbom & provenance (#129)
Co-authored-by: Andreas Kienle <[email protected]>
1 parent dba0e4f commit 347cae9

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

.github/workflows/on-release.yaml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,18 +24,18 @@ jobs:
2424

2525
release:
2626
runs-on: ubuntu-latest
27-
needs:
27+
needs:
2828
- run-build
2929

3030
permissions:
3131
contents: write # write release tag to the repo
3232
packages: write # push the container to ghcr
33-
33+
3434
steps:
3535
- name: Checkout code
3636
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
3737
with:
38-
fetch-depth: 0 # Fetch all history for all tags and branches
38+
fetch-depth: 0 # Fetch all history for all tags and branches
3939

4040
- name: Check if tag already exists
4141
id: check_tag
@@ -47,7 +47,7 @@ jobs:
4747
else
4848
echo "Tag does not exit. Building release version ${{ github.event.inputs.nextVersion }}"
4949
fi
50-
50+
5151
- name: Log in to the Container registry
5252
uses: docker/login-action@74a5d142397b4f367a81961eba4e8cd7edddf772 # v3.4.0
5353
with:
@@ -61,7 +61,9 @@ jobs:
6161
with:
6262
context: .
6363
push: true
64-
tags: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ github.event.inputs.nextVersion }}
64+
sbom: true
65+
provenance: mode=max
66+
tags: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest,${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ github.event.inputs.nextVersion }}
6567

6668
- name: Create Release with autogenerated release notes
6769
env:

0 commit comments

Comments
 (0)