Skip to content

Commit

Permalink
Fixing error on migration step at release workflow job (#96)
Browse files Browse the repository at this point in the history
  • Loading branch information
vokomarov authored Sep 4, 2022
2 parents df3ff73 + 1a07c7a commit 1656561
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -118,5 +118,7 @@ jobs:

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

0 comments on commit 1656561

Please sign in to comment.