Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Cecile Cavet
test-ci
Commits
c2c3bddc
Commit
c2c3bddc
authored
Oct 08, 2018
by
Cecile Cavet
Browse files
Update .gitlab-ci.yml
parent
91ba3da1
Pipeline
#17430
failed with stage
in 12 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
7 deletions
+6
-7
.gitlab-ci.yml
.gitlab-ci.yml
+6
-7
No files found.
.gitlab-ci.yml
View file @
c2c3bddc
#image: python:alpine
image
:
ubuntu
:latest
image
:
centos
:latest
deploy_prod
:
#script: git push production HEAD:master
script
:
-
"
export
SSHPASS=$SSH_PRIVATE_KEY
"
-
"
ssh-agent
&&
ssh-add
$SSH_PRIVATE_KEY
"
-
"
scp
-o
stricthostkeychecking=no
-r
test
cavet@134.158.74.72:ldc_git"
environment
:
name
:
CLOUD_VM
url
:
134.158.74.72
-
eval $(ssh-agent -s)
-
echo "$SSH_PRIVATE_KEY" | tr -d '\r' | ssh-add - > /dev/null
-
mkdir -p ~/.ssh
-
chmod 700 ~/.ssh
-
scp -o stricthostkeychecking=no -r test cavet@134.158.74.72:ldc_git
only
:
-
master
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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