Fakultas Ilmu Komputer UI
Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Fasilkom UI Open Source Software
Kape
Commits
c6e173db
Commit
c6e173db
authored
Mar 09, 2017
by
Zamil Majdy
Browse files
#140382397 #4 Test Staging Deploy
parent
b89ec015
Changes
1
Hide whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
View file @
c6e173db
...
...
@@ -8,42 +8,32 @@ test:
-
pip install -r requirements.txt
-
python manage.py migrate
-
python manage.py test
-
sudo apt-get install sshpass
-
git status
-
git checkout -b ci_processing
-
git remote add deployment ssh://kape@bot.recruit.id:8022/home/kape.git
-
git config --global user.email "gitlab@autodeploy.com"
-
git config --global user.name "Gitlab Autodeploy"
-
git add -A
-
git commit -m "GitLab Auto Deployment"
-
sshpass -p yukcarikape git push deployment ci_processing:master --force
staging
:
type
:
deploy
script
:
-
apt-get update -qy
-
sudo apt-get install sshpass
-
git checkout -b ci_processing
-
git clone https://gitlab.com/PPL2017csui/PPLA1.git
-
cd PPLA1
-
git checkout UserStory1
-
git pull
-
git remote add deployment ssh://kape@bot.recruit.id:8022/home/kape.git
-
git config --global user.email "gitlab@autodeploy.com"
-
git config --global user.name "Gitlab Autodeploy"
-
git add -A
-
git commit -m "GitLab Auto Deployment"
-
sshpass -p yukcarikape git push deployment ci_processing:master --force
only
:
-
develop
-
sshpass -p yukcarikape git push deployment UserStory1:master --force
-
cd ..
-
sshpass -p yukcarikape git push deployment UserStory1:master --force
only
:
-
UserStory1
production
:
type
:
deploy
script
:
-
apt-get update -qy
-
sudo apt-get install sshpass
-
git checkout -b ci_processing
-
git clone https://gitlab.com/PPL2017csui/PPLA1.git
-
cd PPLA1
-
git checkout master
-
git remote add deployment ssh://kape@bot.recruit.id:8022/home/kape.git
-
git config --global user.email "gitlab@autodeploy.com"
-
git config --global user.name "Gitlab Autodeploy"
-
git add -A
-
git commit -m "GitLab Auto Deployment"
-
sshpass -p yukcarikape git push deployment ci_processing:master --force
-
sshpass -p yukcarikape git push deployment master:master --force
only
:
-
master
\ No newline at end of file
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