Skip to content

Commit

Permalink
Merge pull request #888 from Sefaria/prod-pipeline
Browse files Browse the repository at this point in the history
Prod pipeline
  • Loading branch information
edamboritz authored Jun 14, 2022
2 parents db36a44 + 4da992f commit 440136f
Show file tree
Hide file tree
Showing 11 changed files with 72 additions and 73 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/production-deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ jobs:
- name: Deploy Sandbox
run: ./build/ci/production-helm-deploy.sh build/ci/production-values.yaml
env:
GIT_COMMIT: "${{ github.ref }}"
GIT_COMMIT: "${{ github.ref_name }}"
PROJECT_ID: "${{ secrets.PROD_GKE_PROJECT }}"
NAMESPACE: "${{secrets.PROD_GKE_NAMESPACE}}"
CHART_VERSION: 0.0.12
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,13 @@ spec:
- name: VARNISH_HOST
value: "varnish-{{ .Values.deployEnv }}-{{ .Release.Revision }}"
envFrom:
- secretRef:
name: {{ .Values.secrets.localSettings.ref }}
optional: true
- secretRef:
name: local-settings-secrets-{{ .Values.deployEnv }}
optional: true
- configMapRef:
- secretRef:
name: {{ .Values.secrets.localSettings.ref }}
optional: true
- secretRef:
name: local-settings-secrets-{{ .Values.deployEnv }}
optional: true
- configMapRef:
name: local-settings-{{ .Values.deployEnv }}
volumeMounts:
- mountPath: /app/sefaria/local_settings.py
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,13 +35,13 @@ spec:
- name: VARNISH_HOST
value: "varnish-{{ .Values.deployEnv }}-{{ .Release.Revision }}"
envFrom:
- secretRef:
name: {{ .Values.secrets.localSettings.ref }}
optional: true
- secretRef:
name: local-settings-secrets-{{ .Values.deployEnv }}
optional: true
- configMapRef:
- secretRef:
name: {{ .Values.secrets.localSettings.ref }}
optional: true
- secretRef:
name: local-settings-secrets-{{ .Values.deployEnv }}
optional: true
- configMapRef:
name: local-settings-{{ .Values.deployEnv }}
volumeMounts:
- mountPath: /app/sefaria/local_settings.py
Expand Down
14 changes: 7 additions & 7 deletions helm-chart/sefaria-project/templates/cronjob/metrics.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,13 @@ spec:
- name: VARNISH_HOST
value: "varnish-{{ .Values.deployEnv }}-{{ .Release.Revision }}"
envFrom:
- secretRef:
name: {{ .Values.secrets.localSettings.ref }}
optional: true
- secretRef:
name: local-settings-secrets-{{ .Values.deployEnv }}
optional: true
- configMapRef:
- secretRef:
name: {{ .Values.secrets.localSettings.ref }}
optional: true
- secretRef:
name: local-settings-secrets-{{ .Values.deployEnv }}
optional: true
- configMapRef:
name: local-settings-{{ .Values.deployEnv }}
volumeMounts:
- mountPath: /app/sefaria/local_settings.py
Expand Down
16 changes: 8 additions & 8 deletions helm-chart/sefaria-project/templates/cronjob/mongo-backup.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,14 +34,14 @@ spec:
- name: mongo-dumper
image: mongo:4.4
envFrom:
- secretRef:
name: {{ .Values.secrets.localSettings.ref }}
optional: true
- configMapRef:
name: local-settings-{{ .Values.deployEnv }}
- secretRef:
name: local-settings-secrets-{{ .Values.deployEnv }}
optional: true
- secretRef:
name: {{ .Values.secrets.localSettings.ref }}
optional: true
- configMapRef:
name: local-settings-{{ .Values.deployEnv }}
- secretRef:
name: local-settings-secrets-{{ .Values.deployEnv }}
optional: true
volumeMounts:
- name: shared-volume
mountPath: /mongodumps/shared_volume
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,13 @@ spec:
- name: VARNISH_HOST
value: "varnish-{{ .Values.deployEnv }}-{{ .Release.Revision }}"
envFrom:
- secretRef:
name: {{ .Values.secrets.localSettings.ref }}
optional: true
- secretRef:
name: local-settings-secrets-{{ .Values.deployEnv }}
optional: true
- configMapRef:
- secretRef:
name: {{ .Values.secrets.localSettings.ref }}
optional: true
- secretRef:
name: local-settings-secrets-{{ .Values.deployEnv }}
optional: true
- configMapRef:
name: local-settings-{{ .Values.deployEnv }}
volumeMounts:
- mountPath: /app/sefaria/local_settings.py
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,13 @@ spec:
- name: VARNISH_HOST
value: "varnish-{{ .Values.deployEnv }}-{{ .Release.Revision }}"
envFrom:
- secretRef:
name: {{ .Values.secrets.localSettings.ref }}
optional: true
- secretRef:
name: local-settings-secrets-{{ .Values.deployEnv }}
optional: true
- configMapRef:
- secretRef:
name: {{ .Values.secrets.localSettings.ref }}
optional: true
- secretRef:
name: local-settings-secrets-{{ .Values.deployEnv }}
optional: true
- configMapRef:
name: local-settings-{{ .Values.deployEnv }}
volumeMounts:
- mountPath: /app/sefaria/local_settings.py
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,13 +44,13 @@ spec:
name: {{ template "sefaria.secrets.slackWebhook" . }}
key: slack-webhook
envFrom:
- secretRef:
name: {{ .Values.secrets.localSettings.ref }}
optional: true
- secretRef:
name: local-settings-secrets-{{ .Values.deployEnv }}
optional: true
- configMapRef:
- secretRef:
name: {{ .Values.secrets.localSettings.ref }}
optional: true
- secretRef:
name: local-settings-secrets-{{ .Values.deployEnv }}
optional: true
- configMapRef:
name: local-settings-{{ .Values.deployEnv }}
volumeMounts:
- mountPath: /app/sefaria/local_settings.py
Expand Down
15 changes: 7 additions & 8 deletions helm-chart/sefaria-project/templates/cronjob/sitemaps.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,13 +37,13 @@ spec:
- name: VARNISH_HOST
value: "varnish-{{ .Values.deployEnv }}-{{ .Release.Revision }}"
envFrom:
- secretRef:
name: {{ .Values.secrets.localSettings.ref }}
optional: true
- secretRef:
name: local-settings-secrets-{{ .Values.deployEnv }}
optional: true
- configMapRef:
- secretRef:
name: {{ .Values.secrets.localSettings.ref }}
optional: true
- secretRef:
name: local-settings-secrets-{{ .Values.deployEnv }}
optional: true
- configMapRef:
name: local-settings-{{ .Values.deployEnv }}
volumeMounts:
- name: shared-volume
Expand All @@ -54,7 +54,6 @@ spec:
readOnly: true
command: ["bash"]
args: ["-c", "/app/run /app/scripts/generate_sitemaps.py -o /storage/"]

containers:
- name: file-uploader
image: google/cloud-sdk
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,14 @@ spec:
- name: VARNISH_HOST
value: "varnish-{{ .Values.deployEnv }}-{{ .Release.Revision }}"
envFrom:
- secretRef:
name: {{ .Values.secrets.localSettings.ref }}
optional: true
- configMapRef:
- secretRef:
name: {{ .Values.secrets.localSettings.ref }}
optional: true
- configMapRef:
name: local-settings-{{ .Values.deployEnv }}
- secretRef:
name: local-settings-secrets-{{ .Values.deployEnv }}
optional: true
- secretRef:
name: local-settings-secrets-{{ .Values.deployEnv }}
optional: true
volumeMounts:
- mountPath: /app/sefaria/local_settings.py
name: local-settings
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,13 @@ spec:
- name: VARNISH_HOST
value: "varnish-{{ .Values.deployEnv }}-{{ .Release.Revision }}"
envFrom:
- secretRef:
name: {{ .Values.secrets.localSettings.ref }}
optional: true
- secretRef:
name: local-settings-secrets-{{ .Values.deployEnv }}
optional: true
- configMapRef:
- secretRef:
name: {{ .Values.secrets.localSettings.ref }}
optional: true
- secretRef:
name: local-settings-secrets-{{ .Values.deployEnv }}
optional: true
- configMapRef:
name: local-settings-{{ .Values.deployEnv }}
volumeMounts:
- mountPath: /app/sefaria/local_settings.py
Expand Down

0 comments on commit 440136f

Please sign in to comment.