Commit af4f4dc8 authored by THEO GUILLON's avatar THEO GUILLON
Browse files

Merge branch '307-archive-version-1-1-0' into 'master'

Resolve "Archive version 1.1.0"

See merge request web-DPO/web-DPO!275
parents 01e60074 8f142f8e
......@@ -4,7 +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)\"}"
PAYLOAD: "payload={\"text\": \"[web-DPO] Création de la version [$CI_COMMIT_REF_NAME](https://ressources.libriciel.fr/web-dpo/Package_web-dpo-${CI_COMMIT_REF_NAME}.tar.gz)\"}"
before_script:
# Install ssh-agent if not already installed
......@@ -47,8 +47,9 @@ deploy_ftp:
- cp -R /tmp/${TARBALL_NAME} /tmp/Package_web-dpo-${CI_COMMIT_REF_NAME}/web-dpo/.
- cd /tmp/Package_web-dpo-${CI_COMMIT_REF_NAME}/gedooo && wget https://ressources.libriciel.fr/deploiement/o/odfgedooo-v2.war --no-check-certificate
- cd /tmp/Package_web-dpo-${CI_COMMIT_REF_NAME}/cloudooo && wget https://ressources.libriciel.fr/deploiement/c/cloudooo-1.2.6-ls.tar.gz --no-check-certificate
- tar cvzf /tmp/Package_web-dpo-${CI_COMMIT_REF_NAME}.tar.gz /tmp/Package_web-dpo-${CI_COMMIT_REF_NAME}
- lftp -p 2222 -u "${RESSOURCE_LIBRICIEL_FTP_USER}","${RESSOURCE_LIBRICIEL_FTP_PASSWD}" "sftp://ressources.libriciel.fr/web-dpo" -e "put /tmp/Package_web-dpo-${CI_COMMIT_REF_NAME}.tar.gz; bye"
- cd /tmp
- tar cvzf /tmp/Package_${TARBALL_NAME} /tmp/Package_web-dpo-${CI_COMMIT_REF_NAME}
- lftp -p 2222 -u "${RESSOURCE_LIBRICIEL_FTP_USER}","${RESSOURCE_LIBRICIEL_FTP_PASSWD}" "sftp://ressources.libriciel.fr/web-dpo" -e "put /tmp/Package_${TARBALL_NAME}; bye"
- curl -i -X POST -d "$PAYLOAD" $MATTERMOST_WEBHOOK
artifacts:
......
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