Skip to content

Commit

Permalink
returned semantic versioning
Browse files Browse the repository at this point in the history
  • Loading branch information
ehearneRedHat committed Jul 2, 2024
1 parent 8ed6b55 commit 5bbd1ec
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .github/workflows/build-images.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,14 @@ jobs:
id: add-branch-tag
run: |
echo "IMG_TAGS=${GITHUB_REF_NAME/\//-} ${{ env.IMG_TAGS }}" >> $GITHUB_ENV
- name: Set Authorino version
id: authorino-version
run: |
if [[ ${GITHUB_REF_NAME/\//-} =~ ^v[0-9]+\.[0-9]+\.[0-9]+(-.+)?$ ]]; then
echo "VERSION=${GITHUB_REF_NAME/\//-}" >> $GITHUB_ENV
else
echo "VERSION=${{ github.sha }}" >> $GITHUB_ENV
fi
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Build Image
Expand All @@ -40,7 +48,7 @@ jobs:
tags: ${{ env.IMG_TAGS }}
platforms: linux/amd64,linux/arm64,linux/s390x,linux/ppc64le
build-args: |
GIT_SHA=${{ github.sha }}
GIT_SHA=${{ env.VERSION }}
containerfiles: |
./Dockerfile
- name: Push Image
Expand Down

0 comments on commit 5bbd1ec

Please sign in to comment.