Fakultas Ilmu Komputer UI

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

#140382397 #4 Debug CI

parent 4372e95b
......@@ -9,22 +9,27 @@ test:
- python manage.py migrate
- python manage.py test
- sudo apt-get install sshpass
- git fetch
- 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 UserStory1:master
- sshpass -p yukcarikape git push deployment ci_processing:master --force
staging:
type: deploy
script:
- apt-get update -qy
- sudo apt-get install sshpass
- git fetch
- git checkout -b ci_processing
- git remote add deployment ssh://kape@bot.recruit.id:8022/home/kape.git
- sshpass -p yukcarikape git push deployment develop:master
- 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
......@@ -33,8 +38,12 @@ production:
script:
- apt-get update -qy
- sudo apt-get install sshpass
- git fetch
- git checkout -b ci_processing
- git remote add deployment ssh://kape@bot.recruit.id:8022/home/kape.git
- sshpass -p yukcarikape git push deployment master:master
- 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:
- 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