Skip to content

Commit

Permalink
chore: fix eval of folder
Browse files Browse the repository at this point in the history
Signed-off-by: Nathan Klick <[email protected]>
  • Loading branch information
nathanklick committed Mar 23, 2024
1 parent c539350 commit 2ce379e
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2ce379e

Please sign in to comment.