-
Notifications
You must be signed in to change notification settings - Fork 563
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Pro deployment initial #1883
Merged
Pro deployment initial #1883
Changes from all commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
6468c35
add fly.toml
motatoes 3ecd966
deploy pro
motatoes 7f4719e
pass config file for fly toml
motatoes 56c0828
update file
motatoes 2f09eba
add pro token
motatoes 0981083
change pro dockerfile
motatoes 728af89
deploy
motatoes 78b8501
upgrade atlas version
motatoes b7cd8c5
use newest atlas version
motatoes 1ed067f
update fly version
motatoes 516863d
using jwt auth
motatoes 0c0db3a
remove dockerfile
motatoes File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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 pro-backend | ||
on: | ||
push: | ||
branches: | ||
- develop | ||
- pro | ||
jobs: | ||
deploy: | ||
name: Deploy app | ||
runs-on: ubuntu-latest | ||
concurrency: deploy-group # optional: ensure only one action runs at a time | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. style: Consider using a more specific concurrency group name like 'pro-deploy-group' to avoid conflicts with other workflows |
||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: superfly/flyctl-actions/setup-flyctl@master | ||
- run: flyctl deploy --remote-only --config fly-pro.toml | ||
env: | ||
FLY_API_TOKEN: ${{ secrets.FLYIO_PRO_TOKEN }} |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
# fly.toml app configuration file generated for digger-pro on 2025-02-18T09:50:24+03:00 | ||
# | ||
# See https://fly.io/docs/reference/configuration/ for information about how to use this file. | ||
# | ||
|
||
app = 'digger-pro' | ||
primary_region = 'lhr' | ||
|
||
[env] | ||
DIGGER_CLOUD_HOSTNAME = 'https://ui-backend.digger.dev' | ||
JWT_AUTH = 'true' | ||
|
||
[build] | ||
dockerfile = 'Dockerfile_backend' | ||
|
||
[[services]] | ||
protocol = 'tcp' | ||
internal_port = 3000 | ||
processes = ['app'] | ||
|
||
[[services.ports]] | ||
port = 80 | ||
handlers = ['http'] | ||
force_https = true | ||
|
||
[[services.ports]] | ||
port = 443 | ||
handlers = ['tls', 'http'] | ||
|
||
[services.concurrency] | ||
type = 'connections' | ||
hard_limit = 25 | ||
soft_limit = 20 | ||
|
||
[[vm]] | ||
memory = '1gb' | ||
cpu_kind = 'shared' | ||
cpus = 1 |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
logic: Deploying on both 'develop' and 'pro' branches could lead to unintended deployments. Consider limiting to just 'pro' branch for production deployments.