File tree Expand file tree Collapse file tree 3 files changed +25
-2
lines changed Expand file tree Collapse file tree 3 files changed +25
-2
lines changed Original file line number Diff line number Diff line change @@ -272,3 +272,26 @@ jobs:
272272 username : ${{ github.actor }}
273273 password : ${{ github.token }}
274274 registry : ghcr.io/${{ github.repository_owner }}
275+
276+ push-container-tags :
277+ runs-on : ubuntu-latest
278+ steps :
279+ - name : Log into ghcr.io
280+ uses : redhat-actions/podman-login@v1
281+ with :
282+ username : ${{ github.actor }}
283+ password : ${{ github.token }}
284+ registry : ghcr.io/${{ github.repository_owner }}
285+ - name : Get list of tags
286+ run : |
287+ skopeo list-tags docker://${{ github.repository }} | jq --raw-output '.Tags[]' > tags
288+ - name : Get latest release and rc tags
289+ run : |
290+ STABLE_TAG="$(grep -P '^v\d+\.\d+\.\d+$' tags | sort -rV | head -n1)"
291+ echo "STABLE_TAG=${STABLE_TAG:-v0.0.0}" >> $GITHUB_ENV
292+ LATEST_TAG="$(grep -P '^v\d+\.\d+\.\d+' tags | sort -rV | head -n1)"
293+ echo "LATEST_TAG=${LATEST_TAG:-v0.0.0}" >> $GITHUB_ENV
294+ - name : Update latest and stable tags
295+ run : |
296+ skopeo copy docker://${{ github.repository }}:${{ env.stable_tag }} docker://${{ github.repository }}:stable
297+ 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:
306306 image : ${{ github.event.repository.name }}
307307 build-args : |
308308 GUIDELLM_BUILD_TYPE=candidate
309- tags : latest ${{ env.package_version }}- rc
309+ tags : ${{ env.package_version }}~ rc
310310 containerfiles : |
311311 ./Containerfile
312312 - name : Push To ghcr.io
Original file line number Diff line number Diff line change @@ -305,7 +305,7 @@ jobs:
305305 image : ${{ github.event.repository.name }}
306306 build-args : |
307307 GUIDELLM_BUILD_TYPE=release
308- tags : latest stable ${{ env.package_version }}
308+ tags : ${{ env.package_version }}
309309 containerfiles : |
310310 ./Containerfile
311311 - name : Push To ghcr.io
You can’t perform that action at this time.
0 commit comments