This commit is contained in:
parent
ae53dad24b
commit
4a1ee59b85
1 changed files with 4 additions and 4 deletions
|
@ -10,7 +10,7 @@ env | grep -v -E "^(#|;| |PATH|SHLVL|HOSTNAME|DOCKER_*)" | awk '$1 ~ /^\w+=/' |
|
||||||
|
|
||||||
# login to container registry
|
# login to container registry
|
||||||
if [ -n "${INPUT_USERNAME}" ]; then
|
if [ -n "${INPUT_USERNAME}" ]; then
|
||||||
echo "${INPUT_PASSWORD}" | docker login "${INPUT_REGISTRY}" -u "${INPUT_USERNAME}" --password-stdin
|
printf '%s' "${INPUT_PASSWORD}" | docker login "${INPUT_REGISTRY}" -u "${INPUT_USERNAME}" --password-stdin
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# set custom network
|
# set custom network
|
||||||
|
@ -24,19 +24,19 @@ if [ "${INPUT_MOUNT_SOCKET,,}" == "true" ]; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# map volumes
|
# map volumes
|
||||||
mapfile -t TMP_VOLUMES < <(printf ${INPUT_VOLUMES})
|
mapfile -t TMP_VOLUMES < <(printf '%b' "${INPUT_VOLUMES}")
|
||||||
for vol in "${TMP_VOLUMES[@]}"; do
|
for vol in "${TMP_VOLUMES[@]}"; do
|
||||||
RUNTIME_OPTIONS+=(--volume "${vol}")
|
RUNTIME_OPTIONS+=(--volume "${vol}")
|
||||||
done
|
done
|
||||||
|
|
||||||
# get custom options
|
# get custom options
|
||||||
mapfile -t TMP_OPTIONS < <(printf ${INPUT_OPTIONS})
|
mapfile -t TMP_OPTIONS < <(printf '%b' "${INPUT_OPTIONS}")
|
||||||
for opt in "${TMP_OPTIONS[@]}"; do
|
for opt in "${TMP_OPTIONS[@]}"; do
|
||||||
CUSTOM_OPTIONS+=("${opt}")
|
CUSTOM_OPTIONS+=("${opt}")
|
||||||
done
|
done
|
||||||
|
|
||||||
# get run command
|
# get run command
|
||||||
mapfile -t TMP_RUN < <(printf ${INPUT_RUN})
|
mapfile -t TMP_RUN < <(printf '%b' "${INPUT_RUN}")
|
||||||
for cmd in "${TMP_RUN[@]}"; do
|
for cmd in "${TMP_RUN[@]}"; do
|
||||||
RUN_COMMAND+=("${cmd}")
|
RUN_COMMAND+=("${cmd}")
|
||||||
done
|
done
|
||||||
|
|
Reference in a new issue