forked from SocialGouv/www
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitlab-ci.yml
49 lines (44 loc) · 1 KB
/
.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
37
38
39
40
41
42
43
44
45
46
47
48
49
include:
- project: SocialGouv/gitlab-ci-yml
file: /autodevops.yml
ref: v22.1.6
variables:
AUTO_DEVOPS_RELEASE_AUTO: "🔖"
AUTO_DEVOPS_PRODUCTION_AUTO: "🚀"
AUTO_DEVOPS_ENABLE_KAPP: "🚀"
AUTO_DEVOPS_KANIKO: "enabled"
AUTO_DEVOPS_ENABLE_KAPP: "🍑"
# NOTE(douglasduteil): No install :(
# sharing the node_modules is too slow...
Install:
rules:
- when: never
Lint:
rules:
- when: never
Test:
rules:
- when: never
# NOTE(douglasduteil): use custom build job
# The website it statically built with Nextjs
# Here we manually run `yarn next export` and reuse the `out` dir in Dockerfile
Build:
needs: []
cache:
key:
files:
- yarn.lock
prefix: ${CI_JOB_NAME}
paths:
- .cache
script:
- yarn config set cache-folder $CI_PROJECT_DIR/.cache/yarn
- yarn --frozen-lockfile --prefer-offline
- yarn next build
- yarn next export
variables:
VERSION: ${CI_COMMIT_SHORT_SHA}
artifacts:
expire_in: 1 day
paths:
- out