From 2c6e79e83f23feedc0c1ed972e242e59428a573e Mon Sep 17 00:00:00 2001 From: sharonsyh Date: Sun, 4 Aug 2024 22:48:16 +0900 Subject: [PATCH] Modified command for creating manifest list --- .github/workflows/push_docker.yaml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/push_docker.yaml b/.github/workflows/push_docker.yaml index 83afae8b..b5c8c971 100644 --- a/.github/workflows/push_docker.yaml +++ b/.github/workflows/push_docker.yaml @@ -131,11 +131,14 @@ jobs: digests=$(find /tmp/digests -type f -name '*.digest' | xargs cat) cmd_primary="docker buildx imagetools create $tags" for digest in $digests; do - cmd_primary="$cmd_primary $REGISTRY_IMAGE@sha256:${digest#sha256:} $ADDITIONAL_REGISTRY_IMAGE@sha256:${digest#sha256:}" + cmd_primary="$cmd_primary $REGISTRY_IMAGE@sha256:${digest#sha256:}" + done + cmd_secondary="docker buildx imagetools create $tags" + for digest in $digests; do + cmd_secondary="$cmd_secondary $ADDITIONAL_REGISTRY_IMAGE@sha256:${digest#sha256:}" done - echo "Running primary command: $cmd_primary" eval $cmd_primary - + eval $cmd_secondary - name: Inspect image run: | docker buildx imagetools inspect ${{ env.REGISTRY_IMAGE }}:${{ steps.meta.outputs.version }}