Commit 347383b6 authored by Bastien Le Querrec's avatar Bastien Le Querrec
Browse files

add pages

parent f4478b56
......@@ -5,27 +5,36 @@ variables:
stages:
- build
before_script:
- apt-get update
- apt-get install --no-install-recommends -y make jq python3 python3-dev python3-pip python3-setuptools python3-wheel curl unzip postgresql sudo
- useradd builder
- pip3 install yq
- publish
build:
stage: build
script:
- apt-get update
- apt-get install --no-install-recommends -y make jq python3 python3-dev python3-pip python3-setuptools python3-wheel curl unzip postgresql sudo
- useradd builder
- pip3 install yq
- sudo -u builder PATH="/usr/lib/postgresql/13/bin:$PATH" make
- mkdir -p parlementairesjs-${CI_COMMIT_SHORT_SHA}/data/
- cp -L -r icons parlementairesjs-${CI_COMMIT_SHORT_SHA}/
- cp -L -r parlementaires.css parlementairesjs-${CI_COMMIT_SHORT_SHA}/
- cp -L -r parlementaires.js parlementairesjs-${CI_COMMIT_SHORT_SHA}/
- cp -L -r demo.html parlementairesjs-${CI_COMMIT_SHORT_SHA}/
- cp -L -r iframe.html parlementairesjs-${CI_COMMIT_SHORT_SHA}/
- cp -L -r data/gen parlementairesjs-${CI_COMMIT_SHORT_SHA}/data/
- mkdir -p parlementairesjs-${CI_COMMIT_SHORT_SHA}/
- cp -L -r data/gen/* parlementairesjs-${CI_COMMIT_SHORT_SHA}/
artifacts:
paths:
- parlementairesjs-${CI_COMMIT_SHORT_SHA}/
only:
- main
pages:
stage: publish
script:
- mkdir -p public/data/
- mv parlementairesjs-${CI_COMMIT_SHORT_SHA} public/data/gen
- cp -L -r icons public/
- cp -L -r parlementaires.css public/
- cp -L -r parlementaires.js public/
- cp -L -r demo.html public/
- cp -L -r iframe.html public/
artifacts:
paths:
- public/
only:
- main
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