From a60deb928d6d4037c650df9030a72de234ac58ee Mon Sep 17 00:00:00 2001 From: Bibo Hao Date: Wed, 9 Apr 2025 03:03:57 +0800 Subject: [PATCH] Update build-docker.yml --- .github/workflows/build-docker.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build-docker.yml b/.github/workflows/build-docker.yml index 20b1217..6e72cce 100644 --- a/.github/workflows/build-docker.yml +++ b/.github/workflows/build-docker.yml @@ -156,6 +156,7 @@ jobs: DOCKER_MIRROR_REGISTRY: ${{ vars.DOCKER_MIRROR_REGISTRY }} run: | source ./tool.sh - printenv | sort > /tmp/docker.env - docker run --rm --env-file /tmp/docker.env -v $(pwd):/tmp -w /tmp ${IMG_NAMESPACE:-qpod}/docker-kit \ - bash -c 'printenv | sort && python /opt/utils/image-syncer/run_jobs.py' + printf '%s' "$AUTH_FILE_CONTENT" > .github/workflows/auth.json && ls -alh ./.github/workflows + printenv | grep -v 'PATH' > /tmp/docker.env && echo "REGISTRY_URL=${REGISTRY_DST}" >> /tmp/docker.env + docker run --rm --env-file /tmp/docker.env -v $(pwd):/tmp -w /tmp ${IMG_PREFIX_DST:-qpod}/docker-kit \ + python /opt/utils/image-syncer/run_jobs.py --auth-file=/tmp/.github/workflows/auth.json