Merge pull request #141 from UoaWDCC/feat/ticket-scanning-page #107
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: Fly Deploy Staging | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
deploy-web: | |
name: Deploy Web | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: superfly/flyctl-actions/setup-flyctl@master | |
- run: flyctl deploy --remote-only --config fly.staging.toml --build-secret VITE_CLERK_PUBLISHABLE_KEY=${{ secrets.VITE_CLERK_PUBLISHABLE_KEY }} --build-arg VITE_CLERK_PUBLISHABLE_KEY=${{ secrets.VITE_CLERK_PUBLISHABLE_KEY }} | |
working-directory: ./web | |
env: | |
FLY_API_TOKEN: ${{ secrets.FLY_STAGING_API_TOKEN }} | |
deploy-api: | |
name: Deploy Api | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: superfly/flyctl-actions/setup-flyctl@master | |
- run: flyctl deploy --remote-only --config fly.staging.toml --build-arg DATABASE_HOST=${{ secrets.DATABASE_HOST }} --build-arg DATABASE_PORT=${{ secrets.DATABASE_PORT }} --build-arg DATABASE_USERNAME=${{ secrets.DATABASE_USERNAME }} --build-arg DATABASE_PASSWORD=${{ secrets.DATABASE_PASSWORD }} | |
working-directory: ./api | |
env: | |
FLY_API_TOKEN: ${{ secrets.FLY_API_STAGING_API_TOKEN }} | |
deploy-strapi: | |
name: Deploy Strapi | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: superfly/flyctl-actions/setup-flyctl@master | |
- run: flyctl deploy --remote-only --config fly.staging.toml | |
working-directory: ./strapi | |
env: | |
FLY_API_TOKEN: ${{ secrets.FLY_STRAPI_STAGING_API_TOKEN }} |