Fakultas Ilmu Komputer UI

Commit a13a6f7e authored by Hafiyyan's avatar Hafiyyan
Browse files

GCP Deployment

parent aa3fccb4
Pipeline #26611 passed with stages
in 13 minutes and 6 seconds
...@@ -78,17 +78,16 @@ staging: ...@@ -78,17 +78,16 @@ staging:
production: production:
stage: deploy stage: deploy
script: script:
- apt-get update -qy - 'which ssh-agent || ( apt-get update -y && apt-get install openssh-client -y )'
- apt-get install sshpass - eval $(ssh-agent -s)
- git clone https://gitlab.com/PPL2017csui/PPLA1.git - ssh-add <(echo "$KEY_DEPLOYMENT")
- cd PPLA1 - mkdir -p ~/.ssh
- git checkout master - '[[ -f /.dockerenv ]] && echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config'
- git pull - ssh-keyscan -t rsa 10.119.234.71 >> ~/.ssh/known_hosts
- git remote add deployment ssh://kape@bot.recruit.id:8022/home/kape.git - ssh hafiyyan94_gmail_com@35.240.226.230 'sudo bash /home/hafiyyan94_gmail_com/deployment.sh'
- mkdir ~/.ssh environment:
- echo -e "Host bot.recruit.id\n\tStrictHostKeyChecking no\n" >> ~/.ssh/config name: production_gcp
- sshpass -p yukcarikape git push deployment master:master --force url: $PRODUCTION_GCP
when: manual
only: only:
- master - master
......
Supports Markdown
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