-
-
Notifications
You must be signed in to change notification settings - Fork 278
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #794 from Sefaria/workflow-refactor
ci: rework sandbox tests to use helm-chart
- Loading branch information
Showing
11 changed files
with
337 additions
and
316 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
#!/bin/bash | ||
set -x | ||
set -e | ||
|
||
export WEB_IMAGE="gcr.io/$PROJECT_ID/sefaria-web-$BRANCH" | ||
export NODE_IMAGE="gcr.io/$PROJECT_ID/sefaria-node-$BRANCH" | ||
export ASSET_IMAGE="gcr.io/$PROJECT_ID/sefaria-asset-$BRANCH" | ||
export TAG="sha-$GIT_COMMIT" | ||
export NAME="sandbox-$GIT_COMMIT" | ||
|
||
yq e -i '.web.containerImage.imageRegistry = strenv(WEB_IMAGE)' $1 | ||
yq e -i '.nodejs.containerImage.imageRegistry = strenv(NODE_IMAGE)' $1 | ||
yq e -i '.nginx.containerImage.imageRegistry = strenv(ASSET_IMAGE)' $1 | ||
yq e -i '.monitor.containerImage.imageRegistry = strenv(WEB_IMAGE)' $1 | ||
yq e -i '.web.containerImage.tag = strenv(TAG)' $1 | ||
yq e -i '.nodejs.containerImage.tag = strenv(TAG)' $1 | ||
yq e -i '.nginx.containerImage.tag = strenv(TAG)' $1 | ||
yq e -i '.monitor.containerImage.tag = strenv(TAG)' $1 | ||
yq e -i '.deployEnv = strenv(NAME)' $1 | ||
yq e -i '.localSettings.FRONT_END_URL = "https://"+strenv(NAME)+".cauldron.sefarai.org"' $1 | ||
|
||
helm upgrade -i $NAME ./helm-chart --namespace $NAMESPACE -f $1 --debug --timeout=30m0s | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
sandbox: "true" | ||
contentSandbox: "true" | ||
deployEnv: | ||
previousServicesCount: "1" | ||
web: | ||
containerImage: | ||
imageRegistry: gcr.io/development-205018/sefaria-web-${BRANCH} | ||
tag: | ||
secrets: | ||
googleClient: | ||
ref: google-client-secret | ||
logging: | ||
ref: logging-secret | ||
schoolLookup: | ||
ref: school-lookup-data | ||
redis: | ||
containerImage: | ||
imageRegistry: redis | ||
tag: latest | ||
nodejs: | ||
containerImage: | ||
imageRegistry: gcr.io/development-205018/sefaria-node-${BRANCH} | ||
tag: | ||
varnish: | ||
containerImage: | ||
imageRegistry: gcr.io/production-deployment/sefaria-varnish | ||
tag: v6 | ||
secrets: | ||
varnish: | ||
ref: varnish-secret-helm | ||
ingress: | ||
hosts: | ||
- host: "{{ .Values.deployEnv }}.cauldron.sefaria.org" | ||
path: /* | ||
serviceName: nginx | ||
port: 80 | ||
secrets: | ||
originTls: | ||
ref: cauldron-wildcard-letsencrypt | ||
nginx: | ||
containerImage: | ||
imageRegistry: gcr.io/development-205018/sefaria-asset-${BRANCH} | ||
tag: | ||
monitor: | ||
containerImage: | ||
imageRegistry: gcr.io/development-205018/sefaria-web-${BRANCH} | ||
tag: | ||
secrets: | ||
localSettings: | ||
ref: local-settings-secrets | ||
backupManager: | ||
ref: backup-manager | ||
slackWebhook: | ||
ref: slack-webhook-helm | ||
localSettings: | ||
DEBUG: false | ||
DOMAIN_LANGUAGE: {} | ||
MONGO_HOST: "mongo" | ||
APSCHEDULER_NAME: "apscheduler-{{ .Values.deployEnv }}" | ||
SEARCH_ADMIN: "http://elasticsearch-data:9200" | ||
TURN_SERVER: '' | ||
USE_CLOUDFLARE: false | ||
FRONT_END_URL: "http://${NAME}.cauldron.sefaria.org" | ||
OFFLINE: false | ||
DOWN_FOR_MAINTENANCE: false | ||
MAINTENANCE_MESSAGE: "Sefaria is down for scheduled maintenance. We expect to be back online within 15 minutes. Thank you for your patience." | ||
GLOBAL_WARNING: false | ||
GLOBAL_WARNING_MESSAGE: "Sefaria will be in <b>Read-Only</b> mode for scheduled maintenance from 4:45pm-6:45pm Pacific time. Edits will <b>not</b> be saved during that time." | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters