Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletions .github/workflows/release-candidate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -299,17 +299,19 @@ jobs:
fetch-depth: 0
- name: Get version from branch
run: |
GITHUB_REF="${{ github.ref }}"
[[ -z "$GITHUB_REF" ]] && exit 1 # Fail if ref is unset
echo "PACKAGE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
echo "package_version=${GITHUB_REF#refs/heads/release/}" >> $GITHUB_ENV
- name: Fail if version is unset
if: ${{ env.package_version == '' }}
run: |
exit 1
- name: Buildah build
id: build-image
uses: redhat-actions/buildah-build@v2
with:
image: ${{ github.event.repository.name }}
build-args: |
GUIDELLM_BUILD_TYPE=candidate
tags: ${{ env.package_version }}~rc
tags: ${{ env.package_version= }}~rc
containerfiles: |
./Containerfile
- name: Push To ghcr.io
Expand Down
8 changes: 5 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -298,9 +298,11 @@ jobs:
fetch-depth: 0
- name: Get version from branch
run: |
GITHUB_REF="${{ github.ref }}"
[[ -z "$GITHUB_REF" ]] && exit 1 # Fail if ref is unset
echo "PACKAGE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
echo "package_version=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV
- name: Fail if version is unset
if: ${{ env.package_version == '' }}
run: |
exit 1
- name: Buildah build
id: build-image
uses: redhat-actions/buildah-build@v2
Expand Down