Commit a8aa9a33 authored by Syed Bilal Raees's avatar Syed Bilal Raees

changes in yaml for branch checkout

parent 2f456146
Pipeline #2105 passed with stage
in 8 seconds
...@@ -33,11 +33,12 @@ build_app: ...@@ -33,11 +33,12 @@ build_app:
- | - |
if [[ $CI_COMMIT_REF_NAME = master ]]; then if [[ $CI_COMMIT_REF_NAME = master ]]; then
echo "deploying to prod server" echo "deploying to prod server"
git checkout feature git checkout master
sudo systemctl start python.service sudo systemctl start python.service
elif [[ $CI_COMMIT_REF_NAME = dev ]]; then elif [[ $CI_COMMIT_REF_NAME = dev ]]; then
echo "it's a dev server" echo "it's a dev server"
sudo systemctl start prod.service git checkout dev
sudo systemctl start python.service
else else
echo "hello world" echo "hello world"
fi fi
......
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