Fakultas Ilmu Komputer UI

Commit 6828084e authored by Zamil Majdy's avatar Zamil Majdy
Browse files

#140382397 #5 Update CI

parent 236cab86
......@@ -8,14 +8,16 @@ test:
- pip install -r requirements.txt
- python manage.py migrate
- python manage.py test
- git remote add deployment ssh://kape@bot.recruit.id:8022/home/kape.git
- sshpass -p yukcarikape git push deployment develop:master
staging:
type: deploy
script:
- apt-get update -qy
- apt-get install -y ruby-dev
- gem install dpl
- dpl --provider=heroku --app=gitlab-ci-python-test-staging --api-key=$HEROKU_STAGING_API_KEY
- sudo apt-get install sshpass
- git remote add deployment ssh://kape@bot.recruit.id:8022/home/kape.git
- sshpass -p yukcarikape git push deployment develop:master
only:
- develop
......@@ -23,8 +25,8 @@ production:
type: deploy
script:
- apt-get update -qy
- apt-get install -y ruby-dev
- gem install dpl
- dpl --provider=heroku --app=gitlab-ci-python-test-prod --api-key=$HEROKU_PRODUCTION_API_KEY
- sudo apt-get install sshpass
- git remote add deployment ssh://kape@bot.recruit.id:8022/home/kape.git
- sshpass -p yukcarikape git push deployment master:master
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