kopia lustrzana https://gitlab.com/sane-project/website
29 wiersze
1018 B
YAML
29 wiersze
1018 B
YAML
image: alpine:latest
|
|
|
|
variables:
|
|
URL: https://gitlab.com/$CI_PROJECT_NAMESPACE
|
|
|
|
pages:
|
|
stage: deploy
|
|
script:
|
|
- mkdir .public
|
|
- mv * .public/
|
|
- mv .public public
|
|
- mkdir public/snapshots
|
|
- wget --quiet -O public/snapshots/sane-backends-git$(date +%F).tar.gz $URL/backends/repository/master/archive.tar.gz
|
|
- wget --quiet -O public/snapshots/sane-frontends-git$(date +%F).tar.gz $URL/frontends/repository/master/archive.tar.gz
|
|
- wget --quiet -O backends.zip $URL/backends/-/jobs/artifacts/master/download?job=archive
|
|
- unzip -oqd public/snapshots backends.zip
|
|
- mv public/snapshots/lists public/lists
|
|
- mv public/lists/sane-backends.html public/lists/sane-backends-cvs.html
|
|
- mv public/lists/sane-mfgs.html public/lists/sane-mfgs-cvs.html
|
|
- rm public/lists/sane-mfgs-external.html
|
|
- wget --quiet -O frontends.zip $URL/frontends/-/jobs/artifacts/master/download?job=archive
|
|
- unzip -oqd public/snapshots frontends.zip
|
|
artifacts:
|
|
paths:
|
|
- public
|
|
only:
|
|
- master
|
|
- schedules
|