Commit 370f34a7 authored by Thomas Löffler's avatar Thomas Löffler
Browse files

Changes deployment to right server

parent c327311a
Pipeline #1416 failed with stages
in 2 minutes and 26 seconds
......@@ -53,8 +53,8 @@ layout:
- eval $(ssh-agent -s)
- echo "$SSH_PRIVATE_KEY_STAGE" | ssh-add -
- echo "$SSH_PRIVATE_KEY_PRODUCTION" | ssh-add -
- ssh-keyscan -p 22191 stage.typo3.org >> /root/.ssh/known_hosts
- ssh-keyscan -p 22193 typo3.org >> /root/.ssh/known_hosts
- ssh-keyscan -p 22191 my-stage.typo3.org >> /root/.ssh/known_hosts
- ssh-keyscan -p 22193 my.typo3.org >> /root/.ssh/known_hosts
script:
- VERSION=4.0.0-alpine ./.gitlab-ci/scripts/deployer.sh -f/src/.gitlab-ci/deployer/deploy.php deploy ${CI_BUILD_REF_NAME}
when: manual
......@@ -67,7 +67,7 @@ deploy-master:
<<: *deploy_template
environment:
name: master
url: https://typo3.org/
url: https://my.typo3.org/
only:
- master
......@@ -75,7 +75,7 @@ deploy-develop:
<<: *deploy_template
environment:
name: develop
url: https://stage.typo3.org/
url: https://my-stage.typo3.org/
only:
- develop
......@@ -89,8 +89,8 @@ dump-assets:
expire_in: '3d'
script:
- apk add rsync --no-cache
- rsync -ah -e "ssh -p 22191" tthreeorgstage@stage.typo3.org:ci/shared/ ./assets/
- ssh -p22191 tthreeorgstage@stage.typo3.org "mysqldump -u${STAGE_DATABASE_USER} -p${STAGE_DATABASE_PASSWORD} -h127.0.0.1 tthreeorgstage | gzip -9 -c" > ./assets/db.sql.gz
- rsync -ah -e "ssh -p 22191" my@my-stage.typo3.org:ci/shared/ ./assets/
- ssh -p22191 my@my-stage.typo3.org "mysqldump -u${STAGE_DATABASE_USER} -p${STAGE_DATABASE_PASSWORD} -h127.0.0.1 ${STAGE_DATABASE_DB} | gzip -9 -c" > ./assets/db.sql.gz
dependencies:
when:
tags:
......
Supports Markdown
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