aboutsummaryrefslogtreecommitdiff
path: root/.gitlab-ci.yml
diff options
context:
space:
mode:
authorAntoine Beaupré <anarcat@debian.org>2023-10-17 11:36:51 -0400
committerAntoine Beaupré <anarcat@debian.org>2023-10-17 11:36:51 -0400
commitdaf01cf629842bff819deb33fbdb65784cca3e2d (patch)
tree5f12e6a5aea49661213b9d4654178839133443ba /.gitlab-ci.yml
parentcd9263feb0c835b059058b6f6757e64706a457c7 (diff)
downloadtorspec-daf01cf629842bff819deb33fbdb65784cca3e2d.tar.gz
torspec-daf01cf629842bff819deb33fbdb65784cca3e2d.zip
remove duplication between check and pages, and make a build job
The `check` job is really a build job here, since it actually does build the website. It just doesn't keep artifacts around... So let's do that, and make the `pages` job just reuse those instead of rebuilding from scratch. This is part of migrating torspec to a static component, as we need artifacts for the built site to be sent in to the static component system. See tpo/tpa/team#41348
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r--.gitlab-ci.yml16
1 files changed, 4 insertions, 12 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 0d513ef..fd46f23 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -1,25 +1,17 @@
+---
-check:
+build:
# Chosen more or less arbitrarily.
image: hrektts/mdbook
script:
- apt-get update && apt-get install -y python3 git
- ./proposals/check_index
- ./build_html.sh
-
-# TODO:
-# There is way too much duplication here with "check".
-#
-# We should remove this once we are uploading to spec.tpo.
-#
-pages:
- image: hrektts/mdbook
- script:
- - apt-get update && apt-get install -y python3
- - ./build_html.sh
- mv html public
artifacts:
paths:
- public
+
+pages:
only:
- main