Skip to content
Snippets Groups Projects
Commit 6c864713 authored by Hartung, Michael's avatar Hartung, Michael
Browse files

Do not push to production from development ;)

parent 88ba575f
No related branches found
No related tags found
No related merge requests found
docker build -t gitlab.rrz.uni-hamburg.de:4567/cosy-bio/drugst.one/backend:prod -f ./Dockerfile .
docker push gitlab.rrz.uni-hamburg.de:4567/cosy-bio/drugst.one/backend:prod
\ No newline at end of file
#!/bin/bash
branch=$(git rev-parse --abbrev-ref HEAD)
if [ "$branch" == "production" ]; then
docker build -t gitlab.rrz.uni-hamburg.de:4567/cosy-bio/drugst.one/backend:prod -f ./Dockerfile .
docker push gitlab.rrz.uni-hamburg.de:4567/cosy-bio/drugst.one/backend:prod
else
echo "DENIED: Your are not in the production branch. Do not push to production from the ${branch} branch."
fi
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment