Commit 3fc4bf5f authored by saschaschmidt's avatar saschaschmidt

Merge branch 'feature/dump_assets' into 'develop'

creates artifact from dev-stage assets

See merge request !71
parents 4f3d290a 4be71880
Pipeline #522 passed with stages
in 3 minutes and 57 seconds
......@@ -9,6 +9,7 @@ stages:
- build
- layout
- deploy
- dump
build:
stage: build
......@@ -43,10 +44,11 @@ layout:
.deploy-template: &deploy_template
stage: deploy
script:
- apk add openssh-client
before_script:
- apk add openssh-client --no-cache
- eval $(ssh-agent -s)
- echo "$SSH_PRIVATE_KEY" | ssh-add -
script:
- ./.gitlab-ci/scripts/deployer.sh -f/src/.gitlab-ci/deployer/deploy.php deploy ${CI_BUILD_REF_NAME}
when: manual
dependencies:
......@@ -67,3 +69,20 @@ deploy-develop:
url: https://extensions-dev.typo3.org/
only:
- develop
dump-assets:
<<: *deploy_template
stage: dump
image: alpine:3.5
artifacts:
paths:
- ./assets/
expire_in: '7d'
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:
except:
- master
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