Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
pythonApp
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Syed Bilal Raees
pythonApp
Commits
a8aa9a33
Commit
a8aa9a33
authored
May 30, 2022
by
Syed Bilal Raees
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
changes in yaml for branch checkout
parent
2f456146
Pipeline
#2105
passed with stage
in 8 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
.gitlab-ci.yml
.gitlab-ci.yml
+3
-2
No files found.
.gitlab-ci.yml
View file @
a8aa9a33
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment