File tree Expand file tree Collapse file tree 3 files changed +32
-2
lines changed Expand file tree Collapse file tree 3 files changed +32
-2
lines changed Original file line number Diff line number Diff line change
1
+ name : Container Image Maintenance
2
+
3
+ on :
4
+ schedule :
5
+ - cron : ' 0 2 * * 3' # Runs at 2am on Wednesdays
6
+ workflow_dispatch : # Enables manual triggering of the workflow
7
+
8
+ jobs :
9
+ push-container-tags :
10
+ runs-on : ubuntu-latest
11
+ steps :
12
+ - name : Log into ghcr.io
13
+ uses : redhat-actions/podman-login@v1
14
+ with :
15
+ username : ${{ github.actor }}
16
+ password : ${{ github.token }}
17
+ registry : ghcr.io/${{ github.repository_owner }}
18
+ - name : Get list of tags
19
+ run : |
20
+ skopeo list-tags docker://${{ github.repository }} | jq --raw-output '.Tags[]' > tags
21
+ - name : Get latest release and rc tags
22
+ run : |
23
+ STABLE_TAG="$(grep -P '^v\d+\.\d+\.\d+$' tags | sort -rV | head -n1)"
24
+ echo "STABLE_TAG=${STABLE_TAG:-v0.0.0}" >> $GITHUB_ENV
25
+ LATEST_TAG="$(grep -P '^v\d+\.\d+\.\d+' tags | sort -rV | head -n1)"
26
+ echo "LATEST_TAG=${LATEST_TAG:-v0.0.0}" >> $GITHUB_ENV
27
+ - name : Update latest and stable tags
28
+ run : |
29
+ skopeo copy docker://${{ github.repository }}:${{ env.stable_tag }} docker://${{ github.repository }}:stable
30
+ skopeo copy docker://${{ github.repository }}:${{ env.latest_tag }} docker://${{ github.repository }}:latest
Original file line number Diff line number Diff line change @@ -306,7 +306,7 @@ jobs:
306
306
image : ${{ github.event.repository.name }}
307
307
build-args : |
308
308
GUIDELLM_BUILD_TYPE=candidate
309
- tags : latest ${{ env.package_version }}- rc
309
+ tags : ${{ env.package_version }}~ rc
310
310
containerfiles : |
311
311
./Containerfile
312
312
- name : Push To ghcr.io
Original file line number Diff line number Diff line change @@ -305,7 +305,7 @@ jobs:
305
305
image : ${{ github.event.repository.name }}
306
306
build-args : |
307
307
GUIDELLM_BUILD_TYPE=release
308
- tags : latest stable ${{ env.package_version }}
308
+ tags : ${{ env.package_version }}
309
309
containerfiles : |
310
310
./Containerfile
311
311
- name : Push To ghcr.io
You can’t perform that action at this time.
0 commit comments