22 lines
No EOL
455 B
YAML
22 lines
No EOL
455 B
YAML
apiVersion: batch/v1
|
|
kind: Job
|
|
metadata:
|
|
name: atlas-migrate-dev
|
|
spec:
|
|
template:
|
|
spec:
|
|
restartPolicy: Never
|
|
containers:
|
|
- name: atlas
|
|
image: arigaio/atlas:latest
|
|
command: ["atlas", "migrate", "apply", "--env", "stripe_invoice_prod"]
|
|
envFrom:
|
|
- secretRef:
|
|
name: postgres-secret
|
|
|
|
|
|
|
|
|
|
# You can run this:
|
|
# kubectl apply -f k8s/migrations/atlas-job.yaml
|
|
# Or later from CI. |