File tree Expand file tree Collapse file tree 2 files changed +11
-9
lines changed
Expand file tree Collapse file tree 2 files changed +11
-9
lines changed Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ name: Cleanup main images
22
33on :
44 schedule :
5- - cron : " 5 * * * *"
5+ - cron : ' 5 1 * * *'
66 workflow_dispatch :
77
88env :
1212
1313jobs :
1414 clean :
15- name : " Clean main images"
15+ name : ' Clean main images'
1616 runs-on : ubuntu-latest
1717 permissions :
1818 packages : write
2121 uses : actions/delete-package-versions@e5bc658cc4c965c472efe991f8beea3981499c55 # v5
2222 with :
2323 package-name : ${{ env.IMAGE_NAME }}
24- package-type : " container"
24+ package-type : ' container'
2525 min-versions-to-keep : ${{ env.KEEP_X_IMAGES }}
2626 # Ignore any version that does NOT start with 'main-'
27- ignore-versions : " ^(?!main-).*$"
27+ ignore-versions : ' ^(?!main-).*$'
Original file line number Diff line number Diff 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
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 :
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 :
You can’t perform that action at this time.
0 commit comments