forked from mozilla/bedrock
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
104 lines (94 loc) · 1.92 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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
variables:
CLUSTER_NAME: iowa-a
CONFIG_REPO: [email protected]:mozmeao/www-config
CONFIG_BRANCH: master
stages:
- build
- update-config
build:
stage: build
only:
- master
- stage
- prod
except:
- triggers
tags:
- oregon-b-shell
script:
- make clean build-ci
- FROM_DOCKER_REPOSITORY=mozorg/bedrock_test docker/bin/push2dockerhub.sh
- FROM_DOCKER_REPOSITORY=mozorg/bedrock_assets docker/bin/push2dockerhub.sh
- FROM_DOCKER_REPOSITORY=mozorg/bedrock_code docker/bin/push2dockerhub.sh
- FROM_DOCKER_REPOSITORY=mozorg/bedrock_build docker/bin/push2dockerhub.sh
- FROM_DOCKER_REPOSITORY=mozorg/bedrock docker/bin/push2dockerhub.sh
- bin/upload-staticfiles.sh
build-test:
stage: build
only:
- run-integration-tests
tags:
- oregon-b-shell
script:
- make clean build-ci
- FROM_DOCKER_REPOSITORY=mozorg/bedrock_test docker/bin/push2dockerhub.sh
- FROM_DOCKER_REPOSITORY=mozorg/bedrock docker/bin/push2dockerhub.sh
update-l10n:
stage: update-config
tags:
- oregon-b-shell
only:
changes:
- "l10n/**/*"
refs:
- master
except:
changes:
- "lib/fluent_migrations/**/*"
refs:
- triggers
script:
- bin/open-ftl-pr.sh
.update-config:
stage: update-config
tags:
- oregon-b-shell
except:
- triggers
script:
- bin/update_config.sh
dev:
extends: .update-config
only:
- master
variables:
NAMESPACE: bedrock-dev
stage:
extends: .update-config
only:
- stage
variables:
CLUSTERS: iowa-a
NAMESPACE: bedrock-stage
test:
extends: .update-config
only:
- run-integration-tests
variables:
CLUSTERS: oregon-b
NAMESPACE: bedrock-test
prod:
extends: .update-config
only:
- prod
variables:
CLUSTERS: frankfurt iowa-a
NAMESPACE: bedrock-prod
fluent:
stage: build
tags:
- oregon-b-shell
only:
- triggers
script:
- bin/process-ftl.sh