2023-02-23 14:38:21 +03:00
stages :
- pre-check
- build
- test
2024-01-08 19:34:00 +03:00
- deploy
2023-02-23 14:38:21 +03:00
2024-03-16 02:59:27 +03:00
include :
- component : "gitlab.com/sequoia-pgp/common-ci/sequoia-pipeline@main"
2024-08-15 15:46:31 +03:00
inputs :
extra_features : ",subplot"
2023-05-17 19:21:57 +03:00
2024-03-16 02:59:27 +03:00
variables :
SEQUOIA_CRYPTO_POLICY : ""
2023-02-23 14:38:21 +03:00
2023-03-13 14:54:00 +03:00
docker-build-push :
# Official docker image.
image : docker:stable
stage : build
services :
- docker:dind
tags :
- docker
- self-hosted
before_script :
- docker login -u gitlab-ci-token -p $CI_JOB_TOKEN $CI_REGISTRY
script :
- >
docker build
--no -cache
2024-11-18 13:58:50 +03:00
--file Containerfile
2023-03-13 14:54:00 +03:00
--target sq
--tag "$IMAGE":latest
.
# smoke test
- docker run "$IMAGE":latest --help
- docker push "$IMAGE":latest
after_script : [ ]
only :
refs :
- /docker/i # refs containing 'docker' keyword
- tags
- web
- schedules
variables :
CI_REGISTRY : "registry.gitlab.com"
2023-07-04 12:07:22 +03:00
IMAGE : "$CI_REGISTRY/sequoia-pgp/sequoia-sq"
2023-03-13 14:54:00 +03:00
DOCKER_HOST : tcp://docker:2376
2024-01-08 19:34:00 +03:00
pages :
stage : deploy
2024-07-05 11:11:56 +03:00
image : jampot.sequoia-pgp.org/sequoia-pgp/build-docker-image/trixie-pandoc:latest
2024-01-08 19:34:00 +03:00
script :
- ASSET_OUT_DIR=/tmp/assets cargo doc --no-deps -p sequoia-sq
- mkdir public
- mv -v target/doc public/impl
2024-01-11 15:41:51 +03:00
- for M in /tmp/assets/man-pages/*; do pandoc -s $M -L src/man-pandoc.lua -H src/man-pandoc.inc.html -o $M.html ; done
2024-01-08 19:34:00 +03:00
- mkdir public/man
- mv -v /tmp/assets/man-pages/*.html public/man
- mkdir public/subplot
- pandoc -s -o public/subplot/sq-subplot.html sq-subplot.md
- pandoc -s -o public/subplot/sq-subplot.pdf sq-subplot.md
- echo "/sequoia-sq/ /sequoia-sq/man/sq.1.html 302" > public/_redirects
2024-01-08 20:46:06 +03:00
- echo "/sequoia-sq/impl /sequoia-sq/impl/sq/index.html 302" >> public/_redirects
- echo "/sequoia-sq/man /sequoia-sq/man/sq.1.html 302" >> public/_redirects
2024-01-08 19:34:00 +03:00
- echo "/sequoia-sq/subplot /sequoia-sq/subplot/sq-subplot.html 302" >> public/_redirects
artifacts :
paths :
- public
only :
- main