From c95365fa8bba1bf93ad75402fc8449376b2ee506 Mon Sep 17 00:00:00 2001 From: New Future Date: Mon, 9 Jun 2025 11:13:40 +0800 Subject: [PATCH] fix docker buildx imagetools create --- .github/workflows/build.yml | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index e81a362..76ccb9e 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -462,16 +462,23 @@ jobs: if-no-files-found: error retention-days: ${{ github.event_name == 'push' && 7 || 3 }} - - name: Merge all platform images + - name: Extra all platform images run: | set -ex mkdir -p arm-oci && tar -vxf docker-arm/multi-platform-image.tar -C arm-oci mkdir -p amd-oci && tar -vxf docker-amd/multi-platform-image.tar -C amd-oci mkdir -p ext-oci && tar -vxf multi-platform-extra.tar -C ext-oci - docker buildx imagetools create \ - -t "docker.io/newfuture/ddns:${{github.ref_name}}" \ + - name: Push Github Container + run: docker buildx imagetools create -t "ghcr.io/newfuture/ddns:${{github.ref_name}}" \ -f arm-oci/index.json \ -f amd-oci/index.json \ -f ext-oci/index.json \ + --annotation "$DOCKER_METADATA_OUTPUT_ANNOTATIONS" + - name: Push to Docker Hub + run: docker buildx imagetools create \ + -t "docker.io/newfuture/ddns:${{github.ref_name}}" \ + -f arm-oci/index.json \ + -f amd-oci/index.json \ + -f ext-oci/index.json \ --annotation "$DOCKER_METADATA_OUTPUT_ANNOTATIONS"