-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitlab-ci.yml
55 lines (51 loc) · 986 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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
stages:
- check
- deploy
- registry
- update-releases
prettier:
stage: check
image: node:lts
before_script:
- npm ci
script:
- npx prettier --check .
- npx eslint
pages:
stage: deploy
image: node:lts
before_script:
- npm ci
script:
- npm run build
artifacts:
paths:
- dist
publish: dist
variables:
BASE_URL: "/calyxos-webinstall"
only:
- main
build:
image: docker:27
stage: registry
services:
- name: docker:27-dind
alias: docker
variables:
IMAGE_TAG: $CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG
script:
- echo "$CI_REGISTRY_PASSWORD" | docker login $CI_REGISTRY -u $CI_REGISTRY_USER --password-stdin
- docker build -t $IMAGE_TAG .
- docker push $IMAGE_TAG
releases:
image: node:lts
before_script:
- npm ci
stage: update-releases
script:
- npm run update-releases
- git diff public/releases/index.json
artifacts:
paths:
- public/releases/index.json