mirror of
https://github.com/elgohr/Publish-Docker-Github-Action.git
synced 2026-03-12 18:07:12 -04:00
Looks like git is capitalizing the environment variables. So lets shout when build.
This commit is contained in:
@@ -15,12 +15,12 @@ fi;
|
||||
DOCKERNAME="${DOCKER_REPOSITORY}:${BRANCH}"
|
||||
CUSTOMDOCKERFILE=""
|
||||
|
||||
if [ ! -z "${INPUT_dockerfile}" ]; then
|
||||
CUSTOMDOCKERFILE="-f ${INPUT_dockerfile}"
|
||||
if [ ! -z "${INPUT_DOCKERFILE}" ]; then
|
||||
CUSTOMDOCKERFILE="-f ${INPUT_DOCKERFILE}"
|
||||
fi
|
||||
|
||||
|
||||
if [ "${INPUT_snapshot}" == "true" ]; then
|
||||
if [ "${INPUT_SNAPSHOT}" == "true" ]; then
|
||||
SHA=$(env | grep ^github\\.sha= | cut -d= -f2-) # Thank you Github for using dots in variables
|
||||
SHA_DOCKER_NAME="${DOCKER_REPOSITORY}:${SHA}"
|
||||
docker build $CUSTOMDOCKERFILE -t ${DOCKERNAME} -t ${SHA_DOCKER_NAME} .
|
||||
|
||||
Reference in New Issue
Block a user