Skip to content

Commit a0ad92e

Browse files
committed
chore: several improvements
1 parent adb3086 commit a0ad92e

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

.github/workflows/build-push.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,8 @@ jobs:
4242
username: ${{ github.actor }}
4343
password: ${{ secrets.GITHUB_TOKEN }}
4444
- uses: docker/metadata-action@902fa8ec7d6ecbf8d84d538b9b233a880e428804 # v5.7.0
45+
env:
46+
DOCKER_METADATA_SET_OUTPUT_ENV: false
4547
id: metadata
4648
with:
4749
images: ${{ env.REGISTRY }}/${{ github.repository }}-${{ matrix.flavor }}
@@ -116,6 +118,7 @@ jobs:
116118
id: metadata
117119
env:
118120
DOCKER_METADATA_ANNOTATIONS_LEVELS: index
121+
DOCKER_METADATA_SET_OUTPUT_ENV: false
119122
with:
120123
images: ${{ env.REGISTRY }}/${{ github.repository }}-${{ matrix.flavor }}
121124
# Generate Docker tags based on the following events/attributes
@@ -129,7 +132,7 @@ jobs:
129132
- name: Create manifest list and push
130133
working-directory: ${{ runner.temp }}/digests
131134
run: |
132-
docker buildx imagetools create $(jq -cr '.tags | map("-t " + .) | join(" ")' <<< "$DOCKER_METADATA_OUTPUT_JSON") \
135+
docker buildx imagetools create $(jq -cr '.tags | map("-t " + .) | join(" ")' <<< "${{ steps.metadata.outputs.json }}") \
133136
$(printf '${{ env.REGISTRY }}/${{ github.repository }}-${{ matrix.flavor }}@sha256:%s ' *)
134137
- name: Inspect manifest and extract digest
135138
id: inspect-manifest
@@ -193,7 +196,7 @@ jobs:
193196

194197
acceptance-test:
195198
if: github.event_name == 'pull_request'
196-
needs: build-push
199+
needs: merge-image
197200
secrets: inherit
198201
uses: ./.github/workflows/acceptance-test.yml
199202
with:

0 commit comments

Comments
 (0)