ci: use strict semver for gcp guest agent image

Signed-off-by: Paul Meyer <49727155+katexochen@users.noreply.github.com>
This commit is contained in:
Paul Meyer 2023-05-11 14:20:21 +02:00
parent c39df2f7da
commit 7968d165c6

View File

@ -30,7 +30,7 @@ jobs:
beforeDot="${semver%%.*}" beforeDot="${semver%%.*}"
afterDot="${semver#*.}" afterDot="${semver#*.}"
afterDotEvaluated=$((afterDot)) afterDotEvaluated=$((afterDot))
semver="$beforeDot.$afterDotEvaluated" semver="v${beforeDot}.${afterDotEvaluated}.0"
echo "Semver tag of guest-agent is $semver" echo "Semver tag of guest-agent is $semver"
echo "latest=$semver" | tee -a "$GITHUB_OUTPUT" echo "latest=$semver" | tee -a "$GITHUB_OUTPUT"
@ -100,7 +100,7 @@ jobs:
- name: Log in to the Container registry - name: Log in to the Container registry
id: docker-login id: docker-login
if: steps.needs-build.outputs.out == 'true' if: steps.needs-build.outputs.out == 'true'
uses: ./.github/actions/container_registry_login uses: ./constellation/.github/actions/container_registry_login
with: with:
registry: ${{ env.REGISTRY }} registry: ${{ env.REGISTRY }}
username: ${{ github.actor }} username: ${{ github.actor }}