forked from cirruslabs/cirrus-ci-web
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.cirrus.yml
47 lines (43 loc) · 1.24 KB
/
.cirrus.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
container:
image: node:current
env:
# see https://github.com/nodejs/node/blob/master/doc/changelogs/CHANGELOG_V17.md#17.0.0
NODE_OPTIONS: --openssl-legacy-provider
task:
node_modules_cache:
folder: .yarn/cache
install_script: yarn
bootstrap_script: yarn bootstrap
matrix:
- name: Build
build_script: yarn build
container:
memory: 8G
- name: Tests
test_script: yarn test
- name: Prettier
prettier-check_script: yarn prettier-check
- name: Type Check
typecheck_script: yarn typecheck
deploy_docker_builder:
only_if: $CIRRUS_BRANCH == "master"
depends_on:
- Build
- Prettier
- Type Check
environment:
DOCKER_USER_NAME: ENCRYPTED[5eb941ed91706fab3eb53bfd01dc3b88caee18e11f9df18b4663875f83e9e390eeb0db087278035b61bf5b24e8f96328]
DOCKER_PASSWORD: ENCRYPTED[5e9b3eb1391a7a0cf259c41920ce60d034660cc49f0b85b2738eb53d9a537b90d0d2173d6321096facd11f5e5a9e31c3]
build_script:
- docker --version
- ./.ci/build_docker.sh
push_script: ./.ci/push_docker.sh
deploy_dry_run_docker_builder:
only_if: $CIRRUS_BRANCH != "master" || $CIRRUS_PR != ""
depends_on:
- Build
- Prettier
- Type Check
build_script:
- docker --version
- ./.ci/build_docker.sh