2018-02-17 07:50:45 +00:00
image : alpine:latest
2018-02-17 12:17:47 +00:00
variables :
URL : https://gitlab.com/$CI_PROJECT_NAMESPACE
2018-02-17 07:50:45 +00:00
pages :
stage : deploy
script :
2018-02-17 12:14:18 +00:00
- mkdir .public
- mv * .public/
- mv .public public
2021-04-05 14:55:08 +00:00
- wget --quiet -O public/snapshots/sane-backends-git$(date +%Y%m%d).tar.gz $URL/backends/-/archive/master/backends-master.tar.gz
- wget --quiet -O public/snapshots/sane-frontends-git$(date +%Y%m%d).tar.gz $URL/frontends/-/archive/master/backends-master.tar.gz
2019-08-17 03:23:44 +00:00
- wget --quiet -O backends.zip $URL/backends/-/jobs/artifacts/master/download?job=make-distcheck
2018-02-17 12:17:47 +00:00
- unzip -oqd public/snapshots backends.zip
2018-03-10 01:16:23 +00:00
- mv public/snapshots/doc/sanei-html public/sanei
2018-03-10 06:31:30 +00:00
- rmdir public/snapshots/doc
2018-02-25 08:26:27 +00:00
- 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
2018-03-07 13:07:54 +00:00
- for f in public/lists/*.html; do sed -i 's|href="contrib|href="../contrib|g; s|href="unsupported|href="../unsupported|g; s|href="man/|href="../man/|g; s|href="imprint|href="../imprint|g; s|href="bugs|href="../bugs|g; s|href="\./|href="../|g; s|src="image|src="../image|g' $f; done
2018-02-17 12:17:47 +00:00
- wget --quiet -O frontends.zip $URL/frontends/-/jobs/artifacts/master/download?job=archive
- unzip -oqd public/snapshots frontends.zip
2018-02-25 09:29:28 +00:00
- ./public/snapshots/create-index.sh > public/snapshots/index.html
2018-02-17 07:50:45 +00:00
artifacts :
paths :
- public
only :
- master
2018-02-17 12:17:47 +00:00
- schedules