From d48f594aa9d66942c338e707a402ca324e7dbb11 Mon Sep 17 00:00:00 2001 From: Patryk Dobrowolski Date: Wed, 2 Oct 2024 00:57:51 +0200 Subject: [PATCH] Update pull-ex-buildx-images.yml --- .github/workflows/pull-ex-buildx-images.yml | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/.github/workflows/pull-ex-buildx-images.yml b/.github/workflows/pull-ex-buildx-images.yml index 80b5377893cb..00f8ca44c95d 100644 --- a/.github/workflows/pull-ex-buildx-images.yml +++ b/.github/workflows/pull-ex-buildx-images.yml @@ -25,14 +25,18 @@ jobs: unpack-image: runs-on: ubuntu-latest needs: build-alpine + outputs: + clean_image: ${{ steps.unpack.outputs.clean_image }} steps: - - name: Unpack image output to environment variable + - name: Unpack image output to output variable + id: unpack run: | IMAGE="${{ needs.build-alpine.outputs.images }}" CLEAN_IMAGE=$(echo "$IMAGE" | sed 's/[][]//g') - echo "CLEAN_IMAGE=$CLEAN_IMAGE" >> $GITHUB_ENV + echo "clean_image=$CLEAN_IMAGE" >> $GITHUB_OUTPUT + - # Build alpine/git image that depends on build-alpine + # Build alpine/git image that depends on build-alpine build-alpine-git: needs: [build-alpine, unpack-image] uses: kyma-project/test-infra/.github/workflows/image-builder.yml@main @@ -40,7 +44,7 @@ jobs: name: alpine-git dockerfile: images/alpine/git/Dockerfile context: . - build-args: BASE_ALPINE_IMAGE=${{ env.CLEAN_IMAGE }} + build-args: BASE_ALPINE_IMAGE=${{ needs.unpack-image.outputs.clean_image }} # # Build alpine/git/gke-aws-auth image that depends on build-alpine-git # build-alpine-git-gke-aws-auth: