Commit d61cc23f authored by Sascha Marcel Schmidt's avatar Sascha Marcel Schmidt

ensures .ssh folder in $HOME exists before populating known_hosts

parent 062073ff
Pipeline #89 failed with stages
in 1 minute and 49 seconds
......@@ -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
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment