generated from codegouvfr/eleventy-dsfr
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
36 lines (34 loc) · 926 Bytes
/
.gitlab-ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# The Docker image that will be used to build your app
# gitlabrunner partagé
default:
tags:
- shared
- region1
variables:
registry_url: nexus.forge-dc.cloudmi.minint.fr
proxy_host: pio.service.consul
proxy_port: 3128
http_proxy: http://${proxy_host}:${proxy_port}
https_proxy: http://${proxy_host}:${proxy_port}
no_proxy: localhost,.pi2.minint.fr
GIT_SSL_NO_VERIFY: "true"
image: node:18
stages:
- pages
# Functions that should be executed before the build script is run
pages:
stage: pages
script:
- npm install
- npm run build
- npm run postbuild
- cp -pR _site/* public/
- cp _site/fr/index.html public/
artifacts:
paths:
# The folder that contains the files to be exposed at the Page URL
- public
rules:
# This ensures that only pushes to the default branch will trigger
# a pages deploy
- if: $CI_COMMIT_REF_NAME == $CI_DEFAULT_BRANCH