]> www.infradead.org Git - users/dwmw2/openconnect.git/commitdiff
Try to generate static website using GitLab pages
authorDaniel Lenski <dlenski@gmail.com>
Sat, 20 Feb 2021 00:05:09 +0000 (00:05 +0000)
committerDaniel Lenski <dlenski@gmail.com>
Sat, 20 Feb 2021 00:05:09 +0000 (00:05 +0000)
Based on the example at https://gitlab.com/pages/plain-html, and ocserv's configuration (https://gitlab.com/openconnect/ocserv/blob/master/.gitlab-ci.yml)

Signed-off-by: Daniel Lenski <dlenski@gmail.com>
.gitlab-ci.yml

index f2f6af3810596a3ea0ce0dc3065dd325f59704b3..eac2598880ae6907be0357eb01e6c286c36c7402 100644 (file)
@@ -478,3 +478,20 @@ static-analyzer/OpenSSL/Fedora:
     when: on_failure
     paths:
       - scan-build-src/*
+
+# generate static website
+pages:
+  image: $CI_REGISTRY/$BUILD_IMAGES_PROJECT:$FEDORA_BUILD
+  stage: deploy
+  script:
+    - ./autogen.sh
+    - ./configure
+    - make -j4 -C www
+    - mv www public
+  dependencies:
+    - "Fedora/GnuTLS"
+  artifacts:
+    paths:
+      - public
+  only:
+    - master@openconnect/openconnect