We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bf35ac0 commit 2e6c252Copy full SHA for 2e6c252
1 file changed
.github/workflows/fly-deploy.yml
@@ -23,6 +23,11 @@ jobs:
23
steps:
24
- uses: actions/checkout@v4
25
- uses: superfly/flyctl-actions/setup-flyctl@master
26
- - run: flyctl ssh console -C 'python manage.py migrate'
+ - run: |
27
+ # if /data is present, then it is implied that we are using a storage volume, and we should run migrations
28
+ if [ -d "/data" ]; then
29
+ flyctl ssh console -C 'python manage.py migrate'
30
+ fi
31
+ shell: bash
32
env:
33
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }}
0 commit comments