Commit 52b16cd8 authored by Théo GUILLON's avatar Théo GUILLON

Update .gitlab-ci.yml

parent 46e7c2ad
deploy_ftp:
stage: production
only:
- tags
image: ubuntu:16.04
variables:
TARBALL_NAME: web-dpo-${CI_COMMIT_REF_NAME}.tar.gz
PAYLOAD: "payload={\"text\": \"[web-DPO] Création de la version [$CI_COMMIT_REF_NAME](http://ressources.libriciel.fr/web-dpo/web-dpo-${CI_COMMIT_REF_NAME}.tar.gz)\"}"
......@@ -28,7 +30,7 @@ deploy_ftp:
- ln -s /usr/bin/nodejs /usr/bin/node
- php composer.phar install --ignore-platform-reqs
script:
- cd /var/www/ && tar cvzf /tmp/${TARBALL_NAME} web-DPO
- tar cvzf /tmp/${TARBALL_NAME} ${PWD}
- lftp -p 2222 -u "${RESSOURCE_LIBRICIEL_FTP_USER}", "${RESSOURCE_LIBRICIEL_FTP_PASSWD}" "sftp://ressources.libriciel.fr/web-dpo" -e "put /tmp/${TARBALL_NAME}; bye"
- curl -i -X POST -d "$PAYLOAD" $MATTERMOST_WEBHOOK
......
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