Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Gitlab will go into maintenance Friday 3rd February from 9:00 to 10:00
Open sidebar
R3
howto-cards
Commits
2f81d8bd
Verified
Commit
2f81d8bd
authored
Jul 24, 2020
by
Laurent Heirendt
✈
Browse files
do not deploy on vm when detached MR ID
parent
7650d98f
Pipeline
#30393
failed
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
View file @
2f81d8bd
...
...
@@ -138,8 +138,8 @@ deploy:vm:
-
echo "$KNOWNHOSTS" > ~/.ssh/known_hosts
-
chmod 644 ~/.ssh/known_hosts
rules
:
-
if
:
'
$CI_COMMIT_REF_NAME
==
"develop"
&&
$CI_PROJECT_PATH
==
"R3/howto-cards"'
-
if
:
'
$CI_COMMIT_REF_NAME
==
"master"
&&
$CI_PROJECT_PATH
==
"R3/howto-cards"'
-
if
:
'
!$CI_MERGE_REQUEST_ID
&&
$CI_COMMIT_REF_NAME
==
"develop"
&&
$CI_PROJECT_PATH
==
"R3/howto-cards"'
-
if
:
'
!$CI_MERGE_REQUEST_ID
&&
$CI_COMMIT_REF_NAME
==
"master"
&&
$CI_PROJECT_PATH
==
"R3/howto-cards"'
script
:
-
ssh -p $SSHPORT $SSHCONNECT "mkdir -p ~/$CI_COMMIT_REF_NAME/sources/public/$CI_JOB_ID ~/$CI_COMMIT_REF_NAME/public"
-
scp -P $SSHPORT -r processed_build/* $SSHCONNECT:~/$CI_COMMIT_REF_NAME/sources/public/$CI_JOB_ID
...
...
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