Skip to content

Commit 56b8dec

Browse files
- Getting closer.
1 parent b8d7410 commit 56b8dec

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.github/workflows/build.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1094,7 +1094,7 @@ jobs:
10941094
- name: Prepare
10951095
run: |
10961096
platform=${{ matrix.platform }}
1097-
echo "PLATFORM_PAIR=${platform//\//-}" >> $GITHUB_ENV
1097+
echo "PLATFORM_PAIR=${platform//\//-}" >> "${GITHUB_ENV}"
10981098
10991099
- name: Docker meta
11001100
id: meta
@@ -1259,12 +1259,14 @@ jobs:
12591259
outputs: type=image,"name=${{ env.STACKQL_IMAGE_NAME }}",push-by-digest=true,name-canonical=true,push=true
12601260

12611261
- name: Export digest
1262+
if: env.BUILD_IMAGE_REQUIRED == 'true'
12621263
run: |
12631264
mkdir -p ${{ runner.temp }}/digests
12641265
digest="${{ steps.img_build.outputs.digest }}"
12651266
touch "${{ runner.temp }}/digests/${digest#sha256:}"
12661267
12671268
- name: Upload digest
1269+
if: env.BUILD_IMAGE_REQUIRED == 'true'
12681270
uses: actions/upload-artifact@v4
12691271
with:
12701272
name: digests-${{ env.PLATFORM_PAIR }}
@@ -1394,6 +1396,7 @@ jobs:
13941396
- name: Create manifest list and push
13951397
working-directory: ${{ runner.temp }}/digests
13961398
run: |
1399+
# shellcheck disable=SC2046
13971400
docker buildx imagetools create $(jq -cr '.tags | map("-t " + .) | join(" ")' <<< "$DOCKER_METADATA_OUTPUT_JSON") \
13981401
$(printf '${{ env.STACKQL_IMAGE_NAME }}@sha256:%s ' *)
13991402

0 commit comments

Comments
 (0)