diff --git a/.github/workflows/pro-deploy.yml b/.github/workflows/pro-deploy.yml index 4545f1457..f745bc76c 100644 --- a/.github/workflows/pro-deploy.yml +++ b/.github/workflows/pro-deploy.yml @@ -7,13 +7,13 @@ on: - develop jobs: deploy: - name: Deploy projects-refresh-service app + name: Deploy pro app runs-on: ubuntu-latest - concurrency: projects-refresh # optional: ensure only one action runs at a time + concurrency: pro-deploy # optional: ensure only one action runs at a time steps: - uses: actions/checkout@v4 - uses: superfly/flyctl-actions/setup-flyctl@master - - run: flyctl deploy --remote-only --config fly-projects-refresh-service.toml --image-label latest + - run: flyctl deploy --remote-only --config fly-pro.toml env: - FLY_API_TOKEN: ${{ secrets.FLYIO_PROJECTS_REFRESH_SVC_TOKEN }} + FLY_API_TOKEN: ${{ secrets.FLYIO_PRO_TOKEN }} diff --git a/.github/workflows/pro-projects-service-deploy.yml b/.github/workflows/pro-projects-service-deploy.yml new file mode 100644 index 000000000..4545f1457 --- /dev/null +++ b/.github/workflows/pro-projects-service-deploy.yml @@ -0,0 +1,19 @@ +# See https://fly.io/docs/app-guides/continuous-deployment-with-github-actions/ + +name: Deploy projects-refresh-service +on: + push: + branches: + - develop +jobs: + deploy: + name: Deploy projects-refresh-service app + runs-on: ubuntu-latest + concurrency: projects-refresh # optional: ensure only one action runs at a time + steps: + - uses: actions/checkout@v4 + - uses: superfly/flyctl-actions/setup-flyctl@master + - run: flyctl deploy --remote-only --config fly-projects-refresh-service.toml --image-label latest + + env: + FLY_API_TOKEN: ${{ secrets.FLYIO_PROJECTS_REFRESH_SVC_TOKEN }}