Fakultas Ilmu Komputer UI

Commit c6e173db authored by Zamil Majdy's avatar Zamil Majdy
Browse files

#140382397 #4 Test Staging Deploy

parent b89ec015
......@@ -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
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