Skip to content

Commit

Permalink
fix(Push): Fixes manifest build, test, push
Browse files Browse the repository at this point in the history
- Fixes source images for generated meta data used by manifest creation.
  • Loading branch information
timnolte committed Dec 14, 2023
1 parent 6f7b1cb commit 1f29feb
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 2 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/release-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -164,13 +164,12 @@ jobs:
uses: docker/metadata-action@v5
id: metadata
with:
images: ${{ env.REGISTRY }}/${{ env.OWNER }}/${{ env.PACKAGE }}
tags: type=raw,value=php-${{ matrix.PHP_VERSION }}-node-${{ matrix.NODE_VERSION }}

- name: Create Manifest List and Push
working-directory: /tmp/${{ env.PACKAGE }}
run: |
docker buildx imagetools create $(jq -cr '.tags | map("-t " + .) | join(" ")' <<< "$DOCKER_METADATA_OUTPUT_JSON") \
docker buildx imagetools create $(jq -cr '.version | map("-t " + .) | join(" ")' <<< "$DOCKER_METADATA_OUTPUT_JSON") \
$(printf '${{ env.REGISTRY }}/${{ env.OWNER }}/${{ env.PACKAGE }}@sha256:%s ' *)
release:
Expand Down
18 changes: 18 additions & 0 deletions .github/workflows/test-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -139,3 +139,21 @@ jobs:
run: ls -R
working-directory: /tmp/${{ env.PACKAGE }}

# https://github.com/marketplace/actions/docker-metadata-action
- name: Docker Metadata
uses: docker/metadata-action@v5
id: metadata
with:
tags: type=raw,value=php-${{ matrix.PHP_VERSION }}-node-${{ matrix.NODE_VERSION }}

- name: Create Manifest List & Image Locally
working-directory: /tmp/${{ env.PACKAGE }}
run: |
docker buildx imagetools create $(jq -cr '.version | map("-t " + .) | join(" ")' <<< "$DOCKER_METADATA_OUTPUT_JSON") \
$(printf '${{ env.PACKAGE }}@sha256:%s ' *)
- name: Inspect Manifest List
working-directory: /tmp/${{ env.PACKAGE }}
run: |
docker buildx imagetools inspect ${{ env.PACKAGE }}:php-${{ matrix.PHP_VERSION }}-node-${{ matrix.NODE_VERSION }}

0 comments on commit 1f29feb

Please sign in to comment.