Commit b48e63dd authored by Cooper, Caleb's avatar Cooper, Caleb

Update rse-bash-modules.sh

parent ed12e5bb
......@@ -36,11 +36,7 @@ func_rse_docker_build_push() {
else
COMMIT_REF="/${COMMIT_REF}"
fi
if [[ -f ${ENV_FILE} ]]; then
docker build --env-file="${ENV_FILE}" -f "${FILE}" -t ${CI_REGISTRY,,}/${CI_PROJECT_PATH,,}${TAG,,}${COMMIT_REF,,} .
else
docker build -f "${FILE}" -t ${CI_REGISTRY,,}/${CI_PROJECT_PATH,,}${TAG,,}${COMMIT_REF,,} .
fi
docker build -f "${FILE}" -t ${CI_REGISTRY,,}/${CI_PROJECT_PATH,,}${TAG,,}${COMMIT_REF,,} .
docker login --username=$CI_REGISTRY_USER --password=$CI_REGISTRY_PASSWORD $CI_REGISTRY
docker push ${CI_REGISTRY,,}/${CI_PROJECT_PATH,,}${TAG,,}${COMMIT_REF,,}
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment