Commit e084117e authored by Cooper, Caleb's avatar Cooper, Caleb
Browse files

Update rse-bash-modules.sh

parent 037e0082
......@@ -22,7 +22,11 @@ func_rse_docker_build_push() {
COMMIT_REF=$(echo "$CI_COMMIT_REF_NAME" | tr '[:upper:]' '[:lower:]' | tr '/' '_' | sed -e 's/^master$/latest/')
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}
if [[ ${COMMIT_REF} = 'latest' ]]; then
docker push ${CI_REGISTRY}/${CI_PROJECT_PATH}${TAG}:${COMMIT_REF}
else
docker push ${CI_REGISTRY}/${CI_PROJECT_PATH}${TAG}/${COMMIT_REF}
fi
}
func_rse_make_sudo_account() {
......
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