Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
R3
school
courses
Commits
42b174b2
Verified
Commit
42b174b2
authored
Jul 02, 2020
by
Laurent Heirendt
✈
Browse files
lint yml
parent
01ff33d8
Pipeline
#29271
passed with stages
in 2 minutes and 56 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
View file @
42b174b2
...
...
@@ -23,7 +23,9 @@ build:
production
:
stage
:
deploy
image
:
alpine:3.1
before_script
:
-
'
which
ssh-agent
||
(
apk
add
--update
openssh
)'
-
eval $(ssh-agent -s)
...
...
@@ -32,7 +34,9 @@ production:
-
'
echo
-e
"Host
*\n\tStrictHostKeyChecking
no\n\n"
>
~/.ssh/config'
-
echo "$KNOWNHOSTS" > ~/.ssh/known_hosts
-
chmod 644 ~/.ssh/known_hosts
rules
:
-
if
:
'
$CI_COMMIT_BRANCH
==
"develop"'
script
:
-
scp -P $SSHPORT -r public/* $SSHCONNECT:~/web/latest
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