File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -295,15 +295,16 @@ jobs:
295295 steps :
296296 - name : Checkout
297297 uses : actions/checkout@v4
298+ - name : Get version from branch
299+ run : echo "PACKAGE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
298300 - name : Buildah build
299301 id : build-image
300302 uses : redhat-actions/buildah-build@v2
301303 with :
302304 image : ${{ github.event.repository.name }}
303305 build-args : |
304306 GUIDELLM_BUILD_TYPE=candidate
305- # TODO: Tag version
306- tags : latest
307+ tags : latest ${{ env.package_version }}-rc
307308 containerfiles : |
308309 ./Containerfile
309310 - name : Push To ghcr.io
Original file line number Diff line number Diff line change @@ -294,15 +294,16 @@ jobs:
294294 steps :
295295 - name : Checkout
296296 uses : actions/checkout@v4
297+ - name : Get version from branch
298+ run : echo "PACKAGE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
297299 - name : Buildah build
298300 id : build-image
299301 uses : redhat-actions/buildah-build@v2
300302 with :
301303 image : ${{ github.event.repository.name }}
302304 build-args : |
303305 GUIDELLM_BUILD_TYPE=release
304- # TODO: Tag version
305- tags : latest stable
306+ tags : latest stable ${{ env.package_version }}
306307 containerfiles : |
307308 ./Containerfile
308309 - name : Push To ghcr.io
You can’t perform that action at this time.
0 commit comments