Skip to content

Commit

Permalink
Update pull-ex-buildx-images.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
akiioto authored Oct 1, 2024
1 parent aa8235c commit d48f594
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions .github/workflows/pull-ex-buildx-images.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,22 +25,26 @@ 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
with:
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:
Expand Down

0 comments on commit d48f594

Please sign in to comment.