Skip to content
Snippets Groups Projects
Commit cb9b804a authored by Emmanuel Bruno's avatar Emmanuel Bruno
Browse files

improves action

parent e609720c
No related branches found
No related tags found
No related merge requests found
...@@ -5,6 +5,8 @@ CURRENT=$(pwd) ...@@ -5,6 +5,8 @@ CURRENT=$(pwd)
echo SCRIPT_DIR=$SCRIPT_DIR echo SCRIPT_DIR=$SCRIPT_DIR
echo PWD=$CURRENT echo PWD=$CURRENT
# mount the gh action directory in the container
docker run \ docker run \
--env GITHUBLOGIN=$GITHUBLOGIN \ --env GITHUBLOGIN=$GITHUBLOGIN \
--env GITHUBPASSWORD=$GITHUBPASSWORD \ --env GITHUBPASSWORD=$GITHUBPASSWORD \
...@@ -12,7 +14,7 @@ docker run \ ...@@ -12,7 +14,7 @@ docker run \
--mount type=bind,source=${HOME}/.ssh,target=/home/user/.ssh \ --mount type=bind,source=${HOME}/.ssh,target=/home/user/.ssh \
--mount type=bind,source=${HOME}/.gitconfig,target=/home/user/.gitconfig,readonly \ --mount type=bind,source=${HOME}/.gitconfig,target=/home/user/.gitconfig,readonly \
--mount type=bind,source="$(pwd)",target=/usr/src/mymaven \ --mount type=bind,source="$(pwd)",target=/usr/src/mymaven \
--mount type=bind,source=${SCRIPT_DIR},target=/usr/local/ci-java-build-action/ \ # mount the gh action directory in the container --mount type=bind,source=${SCRIPT_DIR},target=/usr/local/ci-java-build-action/ \
--workdir /usr/src/mymaven \ --workdir /usr/src/mymaven \
--rm \ --rm \
--env PUID=`id -u` -e PGID=`id -g` \ --env PUID=`id -u` -e PGID=`id -g` \
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment