Updated workdir
This commit is contained in:
parent
4aa0c663aa
commit
34a09d857a
@ -1,5 +1,8 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
|
#### Current working directory is: /github/workspace ####
|
||||||
|
WORKDIR=$(pwd)
|
||||||
|
|
||||||
if [ ! -z $INPUT_USERNAME ];
|
if [ ! -z $INPUT_USERNAME ];
|
||||||
then echo $INPUT_PASSWORD | docker login $INPUT_REGISTRY -u $INPUT_USERNAME --password-stdin
|
then echo $INPUT_PASSWORD | docker login $INPUT_REGISTRY -u $INPUT_USERNAME --password-stdin
|
||||||
fi
|
fi
|
||||||
@ -22,8 +25,4 @@ if [ -z $semicolon_delimited_script ];
|
|||||||
then semicolon_delimited_script="echo $(whoami)"
|
then semicolon_delimited_script="echo $(whoami)"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "Current directory..."
|
exec docker run -v "/var/run/docker.sock":"/var/run/docker.sock" $INPUT_OPTIONS --workdir=$WORKDIR -v $WORKDIR:"/github/workspace" --entrypoint=$INPUT_SHELL $INPUT_IMAGE -c "`cat semicolon_delimited_script`"
|
||||||
pwd
|
|
||||||
ls
|
|
||||||
|
|
||||||
exec docker run -v "/var/run/docker.sock":"/var/run/docker.sock" $INPUT_OPTIONS --entrypoint=$INPUT_SHELL $INPUT_IMAGE -c "`cat semicolon_delimited_script`"
|
|
Loading…
Reference in New Issue
Block a user