Skip to content

Commit

Permalink
Production DB migration job template
Browse files Browse the repository at this point in the history
  • Loading branch information
zwolf committed Oct 4, 2023
1 parent 21d7639 commit 256e1bf
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions kubernetes/db-migrate-production.tmpl
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
apiVersion: batch/v1
kind: Job
metadata:
name: __JOB_NAME__
spec:
template:
spec:
containers:
- name: eras-db-migrate-production
image: ghcr.io/zooniverse/eras:__IMAGE_TAG__
command: ["bundle", "exec", "rails", "db:migrate"]
env:
- name: RAILS_LOG_TO_STDOUT
value: "true"
- name: RAILS_ENV
value: staging
- name: RAILS_MASTER_KEY
valueFrom:
secretKeyRef:
name: eras-production
key: rails-master-key
restartPolicy: Never
backoffLimit: 1

0 comments on commit 256e1bf

Please sign in to comment.