mirror of
https://github.com/elgohr/Publish-Docker-Github-Action.git
synced 2026-03-12 18:07:12 -04:00
Introduce workdir
This commit is contained in:
@@ -35,6 +35,10 @@ if [ $(echo ${GITHUB_REF} | sed -e "s/refs\/pull\///g") != ${GITHUB_REF} ]; then
|
||||
BRANCH="pr$(echo ${GITHUB_REF} | sed -e "s/refs\/pull\///g" | sed -e "s/\///g")"
|
||||
fi;
|
||||
|
||||
if [ ! -z "${INPUT_WORKDIR}" ]; then
|
||||
cd "${INPUT_WORKDIR}"
|
||||
fi
|
||||
|
||||
echo ${INPUT_PASSWORD} | docker login -u ${INPUT_USERNAME} --password-stdin ${INPUT_REGISTRY}
|
||||
|
||||
DOCKERNAME="${INPUT_NAME}:${BRANCH}"
|
||||
|
||||
Reference in New Issue
Block a user