Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .github/workflows/pro-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
19 changes: 19 additions & 0 deletions .github/workflows/pro-projects-service-deploy.yml
Original file line number Diff line number Diff line change
@@ -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
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

style: using 'latest' tag for deployments can be risky as it may lead to unintended deployments - consider using a specific version tag or commit SHA

Suggested change
- run: flyctl deploy --remote-only --config fly-projects-refresh-service.toml --image-label latest
- run: flyctl deploy --remote-only --config fly-projects-refresh-service.toml --image-label ${{ github.sha }}


env:
FLY_API_TOKEN: ${{ secrets.FLYIO_PROJECTS_REFRESH_SVC_TOKEN }}
Loading