From 64537672e616923e8898f88fe757d4e826450bfb Mon Sep 17 00:00:00 2001 From: Blake Blackshear Date: Wed, 8 Nov 2023 13:22:23 +0000 Subject: [PATCH] use skopeo to copy images (#8539) --- .github/workflows/release.yml | 36 +++++------------------------------ 1 file changed, 5 insertions(+), 31 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index b1553eb29..5e269335d 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,6 +1,7 @@ name: On release on: + workflow_dispatch: release: types: [published] @@ -30,34 +31,7 @@ jobs: run: | VERSION_TAG=${BASE}:${CLEAN_VERSION} PULL_TAG=${BASE}:${BUILD_TAG} - docker pull ${PULL_TAG} - docker tag ${PULL_TAG} ${VERSION_TAG} - docker push ${VERSION_TAG} - - name: Tag and push standard arm64 - run: | - VERSION_TAG=${BASE}:${CLEAN_VERSION}-standard-arm64 - PULL_TAG=${BASE}:${BUILD_TAG}-standard-arm64 - docker pull ${PULL_TAG} - docker tag ${PULL_TAG} ${VERSION_TAG} - docker push ${VERSION_TAG} - - name: Tag and push tensorrt - run: | - VERSION_TAG=${BASE}:${CLEAN_VERSION}-tensorrt - PULL_TAG=${BASE}:${BUILD_TAG}-tensorrt - docker pull ${PULL_TAG} - docker tag ${PULL_TAG} ${VERSION_TAG} - docker push ${VERSION_TAG} - - name: Tag and push tensorrt-jp4 - run: | - VERSION_TAG=${BASE}:${CLEAN_VERSION}-tensorrt-jp4 - PULL_TAG=${BASE}:${BUILD_TAG}-tensorrt-jp4 - docker pull ${PULL_TAG} - docker tag ${PULL_TAG} ${VERSION_TAG} - docker push ${VERSION_TAG} - - name: Tag and push tensorrt-jp5 - run: | - VERSION_TAG=${BASE}:${CLEAN_VERSION}-tensorrt-jp5 - PULL_TAG=${BASE}:${BUILD_TAG}-tensorrt-jp5 - docker pull ${PULL_TAG} - docker tag ${PULL_TAG} ${VERSION_TAG} - docker push ${VERSION_TAG} + docker run --rm -v $HOME/.docker/config.json:/config.json quay.io/skopeo/stable:latest copy --authfile /config.json --multi-arch all docker://${PULL_TAG} docker://${VERSION_TAG} + for variant in standard-amd64 tensorrt tensorrt-jp4 tensorrt-jp5 rk; do + docker run --rm -v $HOME/.docker/config.json:/config.json quay.io/skopeo/stable:latest copy --authfile /config.json --multi-arch all docker://${PULL_TAG}-${variant} docker://${VERSION_TAG}-${variant} + done