mirror of
https://gitlab.easter-eggs.com/ee/ldapsaisie.git
synced 2024-11-22 09:59:06 +01:00
CI: handle building & deploying ldapsaisie-snapshot.tar.gz file
This commit is contained in:
parent
1b672f59e7
commit
aa197983a1
2 changed files with 14 additions and 3 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -5,3 +5,4 @@ vendor
|
|||
/src/local.*
|
||||
tests-report*.xml
|
||||
.phplint-cache
|
||||
/ldapsaisie-snapshot.tar.gz
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue