Skip to content

Commit

Permalink
Fix database migration step on deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
vokomarov committed Sep 9, 2022
1 parent 86fc42d commit 21ef6e9
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -115,9 +115,3 @@ jobs:

- name: Verify service ready
run: kubectl -n ${{ env.NAMESPACE }} wait pods -l app=api --for condition=Ready --timeout=60s

- name: Migrate database
run: |
export API_ACTIVE_POD=$(kubectl get pod -n ${{ env.NAMESPACE }} | grep 'api' | awk 'END {print $1}')
echo $API_ACTIVE_POD
kubectl -n ${{ env.NAMESPACE }} exec pods/$API_ACTIVE_POD -- php app.php migrate -s

0 comments on commit 21ef6e9

Please sign in to comment.