Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
services
t3o sites
extensions.typo3.org
extensions.typo3.org
Commits
d61cc23f
Unverified
Commit
d61cc23f
authored
Mar 09, 2017
by
Sascha Marcel Schmidt
Browse files
ensures .ssh folder in $HOME exists before populating known_hosts
parent
062073ff
Pipeline
#89
failed with stages
in 1 minute and 49 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
View file @
d61cc23f
...
...
@@ -24,32 +24,29 @@ build:
expire_in
:
'
7d'
environment
:
${CI_BUILD_REF_NAME}
deploy-
master
:
.
deploy-
template
:
&deploy_template
stage
:
deploy
script
:
-
apk add openssh-client --update
-
eval $(ssh-agent -s)
-
echo "$SSH_PRIVATE_KEY" | ssh-add -
-
mkdir -p $HOME/.ssh
-
echo "$KNOWN_HOSTS" >> $HOME/.ssh/known_hosts
-
./.gitlab-ci/scripts/deployer.sh -f/src/.gitlab-ci/deployer/deploy.php deploy master
when
:
manual
deploy-master
:
<<
:
*deploy_template
environment
:
name
:
master
url
:
https://extensions.typo3.org/
when
:
manual
only
:
-
master
deploy-develop
:
stage
:
deploy
script
:
-
apk add openssh-client --update
-
eval $(ssh-agent -s)
-
echo "$SSH_PRIVATE_KEY" | ssh-add -
-
echo "$KNOWN_HOSTS" >> $HOME/.ssh/known_hosts
-
./.gitlab-ci/scripts/deployer.sh -f/src/.gitlab-ci/deployer/deploy.php deploy develop
<<
:
*deploy_template
environment
:
name
:
develop
url
:
https://extensions-dev.typo3.org/
when
:
manual
only
:
-
develop
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