-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy path.gitlab-ci.yml
More file actions
52 lines (48 loc) · 1.11 KB
/
.gitlab-ci.yml
File metadata and controls
52 lines (48 loc) · 1.11 KB
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
stages:
- lint
- build
- release
variables:
IMAGE_TAG: $CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG
MAIN_IMAGE_TAG: $CI_REGISTRY_IMAGE:main
RELEASE_IMAGE_TAG: $CI_REGISTRY_IMAGE:release
DOCKER_TLS_CERTDIR: ""
DOCKER_HOST: tcp://docker:2375
lint:
image: node:24
stage: lint
script:
- yarn --frozen-lockfile
- yarn locales:compile
- yarn lint
build:
image: docker:24.0.5-cli
services:
- name: docker:24.0.5-dind
stage: build
tags:
- k8s-privileged
before_script:
- until docker info >/dev/null 2>&1; do sleep 1; done
script:
- DOCKER_IMAGE_TAGS="$MAIN_IMAGE_TAG" ./scripts/docker-build-push.sh
only:
- main
release:
image: docker:24.0.5-cli
services:
- name: docker:24.0.5-dind
stage: release
tags:
- k8s-privileged
before_script:
- until docker info >/dev/null 2>&1; do sleep 1; done
script:
- pwd
- env DOCKER_IMAGE_TAGS="$RELEASE_IMAGE_TAG
$CI_REGISTRY_IMAGE:$(./scripts/get-package-version.sh)"
./scripts/docker-build-push.sh
only:
- /^v\d+\.\d+\.\d+$/ # use `yarn version` to create these tags
except:
- branches