-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #65 from jlengrand/main
Auto deploy the latest main branch version to fly.dev
- Loading branch information
Showing
6 changed files
with
99 additions
and
2 deletions.
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,17 @@ | ||
# flyctl launch added from .gitignore | ||
**/.idea | ||
**/.DS_Store | ||
|
||
**/config.ini | ||
|
||
**/venv | ||
|
||
**/.git | ||
**/*.pyc | ||
**/__pycache__ | ||
**/*.egg-info | ||
**/dist | ||
**/build | ||
**/.vscode | ||
|
||
**/.env |
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,25 @@ | ||
name: Fly Deploy | ||
on: | ||
push: | ||
branches: | ||
- main | ||
|
||
env: | ||
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }} | ||
ADYEN_API_KEY: ${{ secrets.ADYEN_API_KEY }} | ||
ADYEN_CLIENT_KEY: ${{ secrets.ADYEN_CLIENT_KEY }} | ||
ADYEN_HMAC_KEY: ${{ secrets.ADYEN_HMAC_KEY }} | ||
ADYEN_MERCHANT_ACCOUNT: ${{ secrets.ADYEN_MERCHANT_ACCOUNT }} | ||
jobs: | ||
deploy: | ||
environment: zeOne | ||
name: Deploy app | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: superfly/flyctl-actions/setup-flyctl@master | ||
- run: flyctl secrets set ADYEN_API_KEY="$ADYEN_API_KEY" | ||
- run: flyctl secrets set ADYEN_CLIENT_KEY="$ADYEN_CLIENT_KEY" | ||
- run: flyctl secrets set ADYEN_HMAC_KEY="$ADYEN_HMAC_KEY" | ||
- run: flyctl secrets set ADYEN_MERCHANT_ACCOUNT="$ADYEN_MERCHANT_ACCOUNT" | ||
- run: flyctl deploy --remote-only |
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,11 @@ | ||
FROM python:3.9-slim | ||
|
||
COPY app/ /app | ||
COPY requirements.txt /app/requirements.txt | ||
|
||
EXPOSE 8080:8080 | ||
|
||
WORKDIR /app | ||
RUN pip install -r requirements.txt | ||
|
||
CMD [ "python", "./app.py" ] |
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 file generated for adyencheckout on 2022-11-07T16:40:06+01:00 | ||
|
||
app = "adyencheckout" | ||
kill_signal = "SIGINT" | ||
kill_timeout = 5 | ||
processes = [] | ||
|
||
[env] | ||
|
||
[experimental] | ||
allowed_public_ports = [] | ||
auto_rollback = true | ||
|
||
[[services]] | ||
http_checks = [] | ||
internal_port = 8080 | ||
processes = ["app"] | ||
protocol = "tcp" | ||
script_checks = [] | ||
[services.concurrency] | ||
hard_limit = 25 | ||
soft_limit = 20 | ||
type = "connections" | ||
|
||
[[services.ports]] | ||
force_https = true | ||
handlers = ["http"] | ||
port = 80 | ||
|
||
[[services.ports]] | ||
handlers = ["tls", "http"] | ||
port = 443 | ||
|
||
[[services.tcp_checks]] | ||
grace_period = "1s" | ||
interval = "15s" | ||
restart_limit = 0 | ||
timeout = "2s" |
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 |
---|---|---|
@@ -1,4 +1,5 @@ | ||
flask | ||
Flask==2.2.2 | ||
Adyen == 6.0.0 | ||
python-dotenv===0.19.2 | ||
requests == 2.27.1 | ||
gunicorn==20.1.0 |