Skip to content

Commit

Permalink
specify container for db migration GH action
Browse files Browse the repository at this point in the history
  • Loading branch information
hubsmoke committed Mar 20, 2024
1 parent cb43bed commit 0f77909
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/run-migrations-dev.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,4 +44,4 @@ jobs:
- name: Migrate DB (DEV)
if: github.ref == 'refs/heads/develop'
run: |
kubectl exec -it $(kubectl get pods -l App=DesciServerDev -o jsonpath="{.items[0].metadata.name}") -- bash -c "source /vault/secrets/config && npx prisma migrate deploy"
kubectl exec -it $(kubectl get pods -l App=DesciServerDev -o jsonpath="{.items[0].metadata.name}") --container desci-server-dev -- bash -c "source /vault/secrets/config && npx prisma migrate deploy"

0 comments on commit 0f77909

Please sign in to comment.