Commit a6865ab4 authored by Jerome Flesch's avatar Jerome Flesch
Browse files

gitlab: update the static pages from a Docker container so we can get the...


gitlab: update the static pages from a Docker container so we can get the pipeline environment variables

Signed-off-by: Jerome Flesch's avatarJerome Flesch <jflesch@openpaper.work>
parent b98f4029
Pipeline #131621 failed with stages
in 2 minutes and 22 seconds
image: debian:stable-slim
stages:
- check
- deploy_dynamic
- deploy_static
check:
only:
- branches@World/OpenPaperwork/openpaper.work
- tags@World/OpenPaperwork/openpaper.work
stage: check
tags:
- linux
- volatile
......@@ -13,10 +16,10 @@ check:
- apt-get install -y -q pycodestyle flake8 python3-flake8 tox
- make check
deploy:
deploy_dynamic:
stage: deploy_dynamic
only:
- branches@World/OpenPaperwork/openpaper.work
- tags@World/OpenPaperwork/openpaper.work
- master@World/OpenPaperwork/openpaper.work
tags:
- openpaper.work
script:
......@@ -29,5 +32,19 @@ deploy:
- cd /var/www/openpaper.work && source venv/bin/activate && make install
- sudo /etc/reload_apache.sh
- sleep 5
- ./gen_static_pages.sh http://127.0.0.1 static_pages
- ./gen_static_pages.sh http://127.0.0.1 static_pages
- ./deliver_static.sh static_pages
deploy_static:
stage: deploy_static
only:
- master@World/OpenPaperwork/openpaper.work
tags:
- linux
- volatile
script:
- apt-get update
- apt-get install -y -q wget rclone
# generate the static pages by querying the django version of the website
- ./gen_static_pages.sh http://openpaper-web.flesch.internal static_pages
- ./deliver_static.sh static_pages
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment