Commit 2cfcd3d5 authored by Théo GUILLON's avatar Théo GUILLON

Update .gitlab-ci.yml

parent f1fafbf0
......@@ -4,6 +4,7 @@ deploy_ftp:
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)\"}"
before_script:
# Install ssh-agent if not already installed
......@@ -30,8 +31,8 @@ deploy_ftp:
- php composer.phar install --ignore-platform-reqs
script:
- cd /var/www/ && tar cvzf /tmp/${TARBALL_NAME} web-DPO
- cp /tmp/${TARBALL_NAME} ${CI_PROJECT_DIR}
- 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
artifacts:
paths:
......
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