fixes ssh for new server

parent a44185b5
Pipeline #1043 passed with stages
in 3 minutes and 37 seconds
...@@ -50,7 +50,10 @@ layout: ...@@ -50,7 +50,10 @@ layout:
before_script: before_script:
- apk add openssh-client bash --no-cache - apk add openssh-client bash --no-cache
- eval $(ssh-agent -s) - eval $(ssh-agent -s)
- echo "$SSH_PRIVATE_KEY" | ssh-add - - echo "$SSH_PRIVATE_KEY_STAGE" | ssh-add -
- echo "$SSH_PRIVATE_KEY_PRODUCTION" | ssh-add -
- ssh-keyscan -p 22191 extensions-stage.typo3.org >> /root/.ssh/known_hosts
- ssh-keyscan -p 22179 extensions.typo3.org >> /root/.ssh/known_hosts
script: script:
- ./.gitlab-ci/scripts/deployer.sh -f/src/.gitlab-ci/deployer/deploy.php deploy ${CI_BUILD_REF_NAME} - ./.gitlab-ci/scripts/deployer.sh -f/src/.gitlab-ci/deployer/deploy.php deploy ${CI_BUILD_REF_NAME}
when: manual when: manual
...@@ -61,8 +64,6 @@ layout: ...@@ -61,8 +64,6 @@ layout:
deploy-master: deploy-master:
<<: *deploy_template <<: *deploy_template
variables:
SSH_PRIVATE_KEY: "$SSH_PRIVATE_KEY_PRODUCTION"
environment: environment:
name: master name: master
url: https://extensions.typo3.org/ url: https://extensions.typo3.org/
...@@ -71,8 +72,6 @@ deploy-master: ...@@ -71,8 +72,6 @@ deploy-master:
deploy-develop: deploy-develop:
<<: *deploy_template <<: *deploy_template
variables:
SSH_PRIVATE_KEY: "$SSH_PRIVATE_KEY_STAGE"
environment: environment:
name: develop name: develop
url: https://extensions-stage.typo3.org/ url: https://extensions-stage.typo3.org/
......
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