Skip to content

Commit 951126e

Browse files
authored
Add new environment (#1295)
1 parent 6c81f53 commit 951126e

File tree

4 files changed

+32
-1
lines changed

4 files changed

+32
-1
lines changed

.circleci/config.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,9 @@ jobs:
143143
if [ $CIRCLE_BRANCH = "env/unesco" ]; then
144144
ENV=sparkle-unesco
145145
fi
146+
if [ $CIRCLE_BRANCH = "env/ohbm" ]; then
147+
ENV=sparkle-ohbm
148+
fi
146149
147150
./node_modules/.bin/firebase use $ENV --token "$FIREBASE_TOKEN"
148151
./node_modules/.bin/firebase deploy --only functions --token "$FIREBASE_TOKEN"
@@ -265,6 +268,12 @@ jobs:
265268
TARGET=sparkle-unesco
266269
RELEASE_STAGE=env/unesco
267270
fi
271+
if [ $CIRCLE_BRANCH = "env/ohbm" ]; then
272+
PREFIX=OHBM_
273+
ENV=sparkle-ohbm
274+
TARGET=sparkle-ohbm
275+
RELEASE_STAGE=env/ohbm
276+
fi
268277
269278
./scripts/init-env.sh $PREFIX
270279
@@ -321,6 +330,7 @@ workflows:
321330
- env/kotr
322331
- env/memrise
323332
- env/unesco
333+
- env/ohbm
324334
- deploy-hosting:
325335
requires:
326336
- lint-and-test
@@ -345,6 +355,7 @@ workflows:
345355
- env/kotr
346356
- env/memrise
347357
- env/unesco
358+
- env/ohbm
348359
# - smoke-test:
349360
# requires:
350361
# - deploy-functions

.firebaserc

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@
1818
"deloitte": "sparkle-deloitte",
1919
"kotr": "sparkle-kotr",
2020
"memrise": "sparkle-memrise",
21-
"unesco": "sparkle-unesco"
21+
"unesco": "sparkle-unesco",
22+
"ohbm": "sparkle-ohbm"
2223
},
2324
"targets": {
2425
"co-reality-map": {
@@ -159,6 +160,13 @@
159160
"sparkle-unesco"
160161
]
161162
}
163+
},
164+
"sparkle-ohbm": {
165+
"hosting": {
166+
"sparkle-ohbm": [
167+
"sparkle-ohbm"
168+
]
169+
}
162170
}
163171
}
164172
}

firebase.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -215,6 +215,17 @@
215215
}
216216
],
217217
"ignore": ["firebase.json", "**/.*", "**/node_modules/**"]
218+
},
219+
{
220+
"target": "sparkle-ohbm",
221+
"public": "build",
222+
"rewrites": [
223+
{
224+
"source": "**",
225+
"destination": "/index.html"
226+
}
227+
],
228+
"ignore": ["firebase.json", "**/.*", "**/node_modules/**"]
218229
}
219230
],
220231
"functions": {

src/index.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,7 @@ if (BUGSNAG_API_KEY) {
151151
"env/kotr",
152152
"env/memrise",
153153
"env/unesco",
154+
"env/ohbm",
154155
];
155156

156157
const releaseStage = () => {

0 commit comments

Comments
 (0)