From b7403e3b85e8370c18f9194f2fcd17a7ee420121 Mon Sep 17 00:00:00 2001 From: Adam Cattermole Date: Fri, 24 Nov 2023 15:02:15 +0000 Subject: [PATCH] Set the authorinoImage in workflow --- .github/workflows/build-images.yaml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build-images.yaml b/.github/workflows/build-images.yaml index 3b77568..dc9e22d 100644 --- a/.github/workflows/build-images.yaml +++ b/.github/workflows/build-images.yaml @@ -22,6 +22,7 @@ env: IMG_REGISTRY_ORG: kuadrant MAIN_BRANCH_NAME: main OPERATOR_NAME: authorino-operator + BUILD_CONFIG_FILE: build.yaml jobs: build: @@ -52,9 +53,12 @@ jobs: run: | sudo apt-get update sudo apt-get install -y qemu-user-static + - name: Install yq dependency + run: | + make yq - name: Set default authorino image run: | - echo "DEFAULT_AUTHORINO_IMAGE=$(cat authorino_image || echo ${{ env.IMG_REGISTRY_HOST }}/${{ env.IMG_REGISTRY_ORG }}/authorino:latest)" >> $GITHUB_ENV + echo "DEFAULT_AUTHORINO_IMAGE=$(./bin/yq e -e '.config.authorinoImage' ${{ env.BUILD_CONFIG_FILE }} || echo ${{ env.IMG_REGISTRY_HOST }}/${{ env.IMG_REGISTRY_ORG }}/authorino:latest)" >> $GITHUB_ENV - name: Build Image id: build-image uses: redhat-actions/buildah-build@v2