fix docker buildx imagetools create

This commit is contained in:
New Future
2025-06-09 11:13:40 +08:00
committed by GitHub
parent 66ceb4ee92
commit c95365fa8b
+10 -3
View File
@@ -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"