diff --git a/.github/workflows/support/scripts/generate-docker-artifact-baseline.sh b/.github/workflows/support/scripts/generate-docker-artifact-baseline.sh index 41a5bfc3b1b0..66e2d266d638 100755 --- a/.github/workflows/support/scripts/generate-docker-artifact-baseline.sh +++ b/.github/workflows/support/scripts/generate-docker-artifact-baseline.sh @@ -118,9 +118,9 @@ start_group "Configuring Environment" start_task "Resolving the Docker Client Configuration" SKOPEO_BIND_MOUNT="" SKOPEO_CREDENTIAL_OPTS="" - DOCKER_CONFIG_FILE="${HOME}/.docker" - if [[ -f "${DOCKER_CONFIG_FILE}" ]]; then - SKOPEO_BIND_MOUNT="--volume ${DOCKER_CONFIG_FILE}:/tmp/docker" + DOCKER_CONFIG_DIR="${HOME}/.docker" + if [[ -d "${DOCKER_CONFIG_DIR}" ]]; then + SKOPEO_BIND_MOUNT="--volume ${DOCKER_CONFIG_DIR}:/tmp/docker" SKOPEO_CREDENTIAL_OPTS="--authfile /tmp/docker/config.json" fi export SKOPEO_BIND_MOUNT SKOPEO_CREDENTIAL_OPTS