Skip to content

Commit efdf002

Browse files
committed
Tag rc and release images with version
Signed-off-by: Samuel Monson <[email protected]>
1 parent 6c1caa0 commit efdf002

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

.github/workflows/release-candidate.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff 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

.github/workflows/release.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)