This commit is contained in:
parent
e30de98e6a
commit
0728da8404
2 changed files with 5 additions and 3 deletions
|
@ -21,7 +21,7 @@ jobs:
|
|||
image: debian:11-slim
|
||||
volumes: /tmp/:/tmp/
|
||||
options: -e TESTENV=${{ gitea.workspace }}
|
||||
run: env; echo "test"
|
||||
run: env
|
||||
|
||||
- name: multi-line options
|
||||
uses: https://git.44net.ch/actions/docker-run-action@main
|
||||
|
@ -35,6 +35,5 @@ jobs:
|
|||
-e TESTENV=${{ gitea.workspace }}
|
||||
-e TESTENV2=TESTENV2
|
||||
run: >-
|
||||
env;
|
||||
sh -c
|
||||
echo "test"
|
||||
|
|
|
@ -2,7 +2,6 @@
|
|||
|
||||
set -euo pipefail
|
||||
|
||||
# set debugging
|
||||
if [ -n "${INPUT_DEBUG}" ]; then
|
||||
set -x
|
||||
fi
|
||||
|
@ -13,6 +12,10 @@ RUN_COMMAND=()
|
|||
|
||||
env | grep -v -E "^(#|;| |PATH|SHLVL|HOSTNAME|DOCKER_*)" | awk '$1 ~ /^\w+=/' | xargs -0 > "/docker-run-action.env"
|
||||
|
||||
if [ -n "${INPUT_DEBUG}" ]; then
|
||||
cat "/docker-run-action.env"
|
||||
fi
|
||||
|
||||
# login to container registry
|
||||
if [ -n "${INPUT_USERNAME}" ]; then
|
||||
printf -- '%s' "'${INPUT_PASSWORD}'" | docker login "${INPUT_REGISTRY}" -u "${INPUT_USERNAME}" --password-stdin
|
||||
|
|
Reference in a new issue