set working directory for github actions #9
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Deploy to Production | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
deploy-strapi: | |
name: Deploy Strapi Prod | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: superfly/flyctl-actions/setup-flyctl@master | |
- run: cd /strapi | |
- run: flyctl deploy --remote-only --config fly.production.toml --dockerfile Dockerfile.production | |
env: | |
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN_STRAPI }} | |
deploy-frontend: | |
name: Deploy Frontend Prod | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: superfly/flyctl-actions/setup-flyctl@master | |
- run: cd /frontend | |
- run: flyctl deploy --remote-only --config fly.production.toml --dockerfile Dockerfile.production | |
env: | |
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN_FRONTEND }} | |
deploy-storage: | |
name: Deploy Storage Prod | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: superfly/flyctl-actions/setup-flyctl@master | |
- run: cd /storage | |
- run: flyctl deploy --remote-only --config fly.production.toml --dockerfile Dockerfile.production | |
env: | |
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN_STORAGE }} |