Skip to content

Commit

Permalink
fix: migration job
Browse files Browse the repository at this point in the history
  • Loading branch information
Kpoke committed Sep 26, 2022
1 parent fe2e295 commit 3422185
Showing 1 changed file with 19 additions and 12 deletions.
31 changes: 19 additions & 12 deletions deployment/base/treetracker-wallet-api-db-migration-job.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,23 @@ spec:
template:
spec:
containers:
- name: migration
image: greenstand/treetracker-wallet-api:TAG
env:
- name: BASE_DATABASE_URL
valueFrom:
secretKeyRef:
name: treetracker-api-database-connection
key: db
- name: DATABASE_URL
value: "$(BASE_DATABASE_URL)&schema=wallets"
command: ["node"]
args: ["node_modules/db-migrate/bin/db-migrate", "up", "--migrations-dir", "database/migrations/", "-v"]
- name: migration
image: greenstand/treetracker-wallet-api:TAG
env:
- name: BASE_DATABASE_URL
valueFrom:
secretKeyRef:
name: treetracker-api-database-connection
key: db
- name: DATABASE_URL
value: '$(BASE_DATABASE_URL)&schema=wallet'
command: ['node']
args:
[
'node_modules/db-migrate/bin/db-migrate',
'up',
'--migrations-dir',
'database/migrations/',
'-v',
]
restartPolicy: Never

0 comments on commit 3422185

Please sign in to comment.