forked from DataBiosphere/data-portal
-
Notifications
You must be signed in to change notification settings - Fork 0
/
cgl-platform-hca-portal-prod-deploy.sh
executable file
·33 lines (26 loc) · 1.17 KB
/
cgl-platform-hca-portal-prod-deploy.sh
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
#!/usr/bin/env bash
# Set the script to exit immediately on error
set -e
rm -rf ./_metadata-schema
rm -rf ./humancellatlas.github.io
git clone https://github.com/HumanCellAtlas/metadata-schema.git _metadata-schema
git clone https://github.com/HumanCellAtlas/humancellatlas.github.io
n 14.16.0
npm ci
gatsby clean
export GATSBY_EXPLORE_URL=https://explore.data.humancellatlas.org/
export GATSBY_FILE_SUMMARY_API_URL=https://service.azul.data.humancellatlas.org/index/summary
export GATSBY_PORTAL_URL=https://data.humancellatlas.org/
export GATSBY_TERM_FACETS_API_URL=https://service.azul.data.humancellatlas.org/index/projects
export GATSBY_SYSTEM_HEALTH_CHECK_API_URL=https://service.azul.data.humancellatlas.org/health/progress
export GATSBY_GTM_ID=GTM-M2J5NTJ
export GATSBY_GTM_AUTH=xm3qglWPEFim7Lb4AxXnsA
export GATSBY_ENV_NAME=env-2
export GATSBY_ENV=PROD
export GATSBY_DEFAULT_CATALOG=dcp37
export GATSBY_ATLAS=hca
gatsby build
export BUCKET=s3://s6g-data.humancellatlas.org.portal/
export SRCDIR=public/
aws s3 sync $SRCDIR $BUCKET --delete --profile platform-hca-portal
aws cloudfront create-invalidation --distribution-id E1Z9WM5A7ARDA2 --paths "/*" --profile platform-hca-portal