Skip to content

Commit

Permalink
Fix kamal cmd
Browse files Browse the repository at this point in the history
  • Loading branch information
abogoyavlensky committed May 22, 2024
1 parent 680a4db commit f75bda7
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,21 +48,21 @@ jobs:
POSTGRES_DB: ${{ secrets.POSTGRES_DB }}
POSTGRES_USER: ${{ secrets.POSTGRES_USER }}
POSTGRES_PASSWORD: ${{ secrets.POSTGRES_PASSWORD }}
run: ./kamal.sh envify
run: kamal envify

- name: Build and push
run: |
./kamal.sh registry login
./kamal.sh build push --version=${{ github.sha }}
kamal registry login
kamal build push --version=${{ github.sha }}
- name: Migrations
run: |
./kamal.sh build pull --version=${{ github.sha }}
./kamal.sh app exec --version=${{ github.sha }} 'java -jar standalone.jar migrations'
kamal build pull --version=${{ github.sha }}
kamal app exec --version=${{ github.sha }} 'java -jar standalone.jar migrations'
- name: Deploy
run: ./kamal.sh deploy --skip-push --version=${{ github.sha }}
run: kamal deploy --skip-push --version=${{ github.sha }}

- name: Kamal Release
if: ${{ cancelled() }}
run: ./kamal.sh lock release
run: kamal lock release

0 comments on commit f75bda7

Please sign in to comment.