/
pipeline.yaml
54 lines (46 loc) · 1.38 KB
/
pipeline.yaml
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
env:
KAIZEN_ROLE_ARN: ${BRANCH_ROLE_ARN}
KAIZEN_DOMAIN_NAME: ${BRANCH_DOMAIN_NAME}
KAIZEN_DISTRIBUTION_ID: ${BRANCH_DISTRIBUTION_ID}
x-defaults: &defaults
agent_query_rules: ["queue=build-unrestricted"]
plugins:
- docker-compose#v3.0.3:
run: build
steps:
- name: ":nut_and_bolt: Compile"
command: ".buildkite/scripts/compile.sh"
branches: "!master"
<<: *defaults
- name: ":mag: Lint"
command: ".buildkite/scripts/lint.sh"
branches: "!master"
<<: *defaults
- name: ":package: Build (site)"
command: ".buildkite/scripts/build-site.sh"
artifact_paths: "./site.tar.gz"
<<: *defaults
- name: ":package: Build (storybook)"
command: ".buildkite/scripts/build-storybook.sh"
artifact_paths: "./storybook.tar.gz"
<<: *defaults
- wait
- name: ":tanabata_tree: Publish: ${KAIZEN_DOMAIN_NAME}${KAIZEN_BASE_PATH}"
command: ".buildkite/scripts/publish.sh"
env:
KAIZEN_EXTRACT_ARTIFACTS: true
<<: *defaults
plugins:
- cultureamp/aws-assume-role#v0.1.0:
role: "${KAIZEN_ROLE_ARN}"
- docker-compose#v3.0.3:
run: publish
- name: ":balloon: Release package"
command: ".buildkite/scripts/release.sh"
branches: "master"
<<: *defaults
plugins:
- cultureamp/aws-assume-role#v0.1.0:
role: "${KAIZEN_ROLE_ARN}"
- docker-compose#v3.0.3:
run: release