From 3652932780396f5abd31d12734fbc2bbd4df5f64 Mon Sep 17 00:00:00 2001 From: Nikola Jokic Date: Mon, 28 Aug 2023 14:46:53 +0200 Subject: [PATCH] Fix canary VERSION parameter (#2842) --- .github/workflows/global-publish-canary.yaml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/global-publish-canary.yaml b/.github/workflows/global-publish-canary.yaml index cf97a710..11a89d5b 100644 --- a/.github/workflows/global-publish-canary.yaml +++ b/.github/workflows/global-publish-canary.yaml @@ -91,7 +91,7 @@ jobs: steps: - name: Checkout uses: actions/checkout@v3 - + - name: Login to GitHub Container Registry uses: docker/login-action@v2 with: @@ -101,14 +101,14 @@ jobs: # Normalization is needed because upper case characters are not allowed in the repository name # and the short sha is needed for image tagging - - name: Resolve parameters + - name: Resolve parameters id: resolve_parameters run: | echo "INFO: Resolving short sha" echo "short_sha=$(git rev-parse --short ${{ github.ref }})" >> $GITHUB_OUTPUT echo "INFO: Normalizing repository name (lowercase)" echo "repository_owner=$(echo ${{ github.repository_owner }} | tr '[:upper:]' '[:lower:]')" >> $GITHUB_OUTPUT - + - name: Set up QEMU uses: docker/setup-qemu-action@v2 @@ -124,7 +124,7 @@ jobs: context: . file: ./Dockerfile platforms: linux/amd64,linux/arm64 - build-args: VERSION=canary-"${{ github.ref }}" + build-args: VERSION=canary-${{ steps.resolve_parameters.outputs.short_sha }} push: ${{ env.PUSH_TO_REGISTRIES }} tags: | ghcr.io/${{ steps.resolve_parameters.outputs.repository_owner }}/gha-runner-scale-set-controller:canary