Commit 54f569c6 authored by Cooper, Caleb's avatar Cooper, Caleb
Browse files

Update rse-bash-modules.sh

parent 3cb917e6
...@@ -14,7 +14,7 @@ func_rse_docker_build_push() { ...@@ -14,7 +14,7 @@ func_rse_docker_build_push() {
TAG="/${1}" TAG="/${1}"
fi fi
COMMIT_REF=$(echo "$CI_COMMIT_REF_NAME" | tr '[:upper:]' '[:lower:]' | tr '/' '_') COMMIT_REF=$(echo "$CI_COMMIT_REF_NAME" | tr '[:upper:]' '[:lower:]' | tr '/' '_')
docker build -t $CI_REGISTRY/$CI_PROJECT_PATH/$COMMIT_REF$TAG . docker build -t $CI_REGISTRY/$CI_PROJECT_PATH$TAG/$COMMIT_REF .
docker login --username=$CI_REGISTRY_USER --password=$CI_REGISTRY_PASSWORD $CI_REGISTRY docker login --username=$CI_REGISTRY_USER --password=$CI_REGISTRY_PASSWORD $CI_REGISTRY
docker push $CI_REGISTRY/$CI_PROJECT_PATH/$COMMIT_REF$TAG docker push $CI_REGISTRY/$CI_PROJECT_PATH$TAG/$COMMIT_REF
} }
\ No newline at end of file
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