diff --git a/.gitignore b/.gitignore index 6e45e56b..2169722b 100644 --- a/.gitignore +++ b/.gitignore @@ -5,3 +5,4 @@ vendor /src/local.* tests-report*.xml .phplint-cache +/ldapsaisie-snapshot.tar.gz diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index ed12987d..8f3cf59f 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -86,6 +86,15 @@ tests:jessie: - rm -f .phplint-cache - /tmp/vendor/bin/phplint src +build:snapshot: + stage: build + image: alpine + script: + - tar -czf ldapsaisie-snapshot.tar.gz --exclude=ldapsaisie-snapshot.tar.gz ./ + artifacts: + paths: + - ldapsaisie-snapshot.tar.gz + build:doc: stage: build image: python:alpine @@ -129,7 +138,7 @@ build:doc:epub: paths: - doc/LdapSaisie.epub -deploy:doc: +deploy: stage: deploy image: alpine:latest before_script: @@ -139,5 +148,6 @@ deploy:doc: - mkdir ~/.ssh - echo "$SSH_HOST_KEY" | base64 -d > ~/.ssh/known_hosts script: - - rsync -atv --exclude '.git*' --delete --progress ./doc/public_html/ $SSH_USER@$SSH_HOST:./ - - rsync -atv ./doc/LdapSaisie.html ./doc/LdapSaisie.pdf ./doc/LdapSaisie.epub $SSH_USER@$SSH_HOST:./ + - rsync -atv --exclude '.git*' --delete --progress ./doc/public_html/ $SSH_USER@$SSH_HOST:doc/ + - rsync -atv ./doc/LdapSaisie.html ./doc/LdapSaisie.pdf ./doc/LdapSaisie.epub $SSH_USER@$SSH_HOST:doc/ + - rsync -atv ldapsaisie-snapshot.tar.gz $SSH_USER@$SSH_HOST:download/ldapsaisie-snapshot.tar.gz