adds dump asset job

parent ea0ee64e
Pipeline #753 failed with stage
in 9 seconds
......@@ -6,6 +6,7 @@ before_script:
- apk add bash --update
stages:
- dump
- build
- layout
- deploy
......@@ -24,7 +25,9 @@ build:
paths:
- ./
expire_in: '1h'
environment: ${CI_BUILD_REF_NAME}
except:
- assets
layout:
stage: layout
......@@ -38,20 +41,24 @@ layout:
paths:
- ./
expire_in: '7d'
environment: ${CI_BUILD_REF_NAME}
dependencies:
- build
except:
- assets
.deploy-template: &deploy_template
stage: deploy
script:
before_script:
- apk add openssh-client rsync
- eval $(ssh-agent -s)
- echo "$SSH_PRIVATE_KEY" | ssh-add -
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
dependencies:
- layout
except:
- assets
deploy-master:
<<: *deploy_template
......@@ -68,3 +75,21 @@ deploy-develop:
url: https://vpro0100.proserver.punkt.de/
only:
- develop
dump-assets:
<<: *deploy_template
stage: dump
image: alpine:3.5
artifacts:
paths:
- ./assets/
expire_in: '3d'
script:
- apk add rsync --no-cache
- rsync -ah -e "ssh -p 22179" extensionsdev@extensions-dev.typo3.org:ci/shared/ ./assets/
- ssh -p22179 extensionsdev@extensions-dev.typo3.org "mysqldump -u${DEV_DATABASE_USER} -p${DEV_DATABASE_PASSWORD} -h127.0.0.1 extensionsdev | gzip -9 -c" > ./assets/db.sql.gz
dependencies:
when:
only:
- assets
except:
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