Fakultas Ilmu Komputer UI
Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
PMPL
Class Project
Kape
Commits
a13a6f7e
Commit
a13a6f7e
authored
Dec 04, 2019
by
Hafiyyan
Browse files
GCP Deployment
parent
aa3fccb4
Pipeline
#26611
passed with stages
in 13 minutes and 6 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
View file @
a13a6f7e
...
...
@@ -78,17 +78,16 @@ staging:
production
:
stage
:
deploy
script
:
-
apt-get update -qy
-
apt-get install sshpass
-
git clone https://gitlab.com/PPL2017csui/PPLA1.git
-
cd PPLA1
-
git checkout master
-
git pull
-
git remote add deployment ssh://kape@bot.recruit.id:8022/home/kape.git
-
mkdir ~/.ssh
-
echo -e "Host bot.recruit.id\n\tStrictHostKeyChecking no\n" >> ~/.ssh/config
-
sshpass -p yukcarikape git push deployment master:master --force
when
:
manual
-
'
which
ssh-agent
||
(
apt-get
update
-y
&&
apt-get
install
openssh-client
-y
)'
-
eval $(ssh-agent -s)
-
ssh-add <(echo "$KEY_DEPLOYMENT")
-
mkdir -p ~/.ssh
-
'
[[
-f
/.dockerenv
]]
&&
echo
-e
"Host
*\n\tStrictHostKeyChecking
no\n\n"
>
~/.ssh/config'
-
ssh-keyscan -t rsa 10.119.234.71 >> ~/.ssh/known_hosts
-
ssh hafiyyan94_gmail_com@35.240.226.230 'sudo bash /home/hafiyyan94_gmail_com/deployment.sh'
environment
:
name
:
production_gcp
url
:
$PRODUCTION_GCP
only
:
-
master
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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