From bcf48a19092e0635166281889e275dba4bd29f21 Mon Sep 17 00:00:00 2001 From: Bronek Kozicki Date: Sun, 8 Dec 2024 13:05:16 +0000 Subject: [PATCH] Set shell in actions --- .github/actions/build-ci-image/action.yml | 2 ++ .github/actions/merge-ci-images/action.yml | 2 ++ 2 files changed, 4 insertions(+) diff --git a/.github/actions/build-ci-image/action.yml b/.github/actions/build-ci-image/action.yml index 3c75bdc0..ac091305 100644 --- a/.github/actions/build-ci-image/action.yml +++ b/.github/actions/build-ci-image/action.yml @@ -38,6 +38,7 @@ runs: using: composite steps: - name: Prepare + shell: bash run: | platform=${{ inputs.platform }} echo "PLATFORM_PAIR=${platform//\//-}" >> $GITHUB_ENV @@ -75,6 +76,7 @@ runs: provenance: mode=max - name: Export digest + shell: bash run: | mkdir -p /tmp/digests digest="${{ steps.build.outputs.digest }}" diff --git a/.github/actions/merge-ci-images/action.yml b/.github/actions/merge-ci-images/action.yml index 07dbf332..101aedcc 100644 --- a/.github/actions/merge-ci-images/action.yml +++ b/.github/actions/merge-ci-images/action.yml @@ -51,10 +51,12 @@ runs: - name: Create manifest list and push working-directory: /tmp/digests + shell: bash run: | docker buildx imagetools create $(jq -cr '.tags | map("-t " + .) | join(" ")' <<< "$DOCKER_METADATA_OUTPUT_JSON") \ $(printf '${{ inputs.image }}@sha256:%s ' *) - name: Inspect image + shell: bash run: | docker buildx imagetools inspect ${{ inputs.image }}:${{ steps.meta.outputs.version }}