Skip to content

Commit

Permalink
add prod workflow and ignore paths
Browse files Browse the repository at this point in the history
  • Loading branch information
anGie44 committed Oct 8, 2023
1 parent f51760b commit 553f1da
Show file tree
Hide file tree
Showing 4 changed files with 50 additions and 2 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/prod-deploy.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Prod Deploy

on:
push:
branches: [main]
paths-ignore:
- README.md
- 'json_examples/**'
- 'models/**'
- .github/workflows/staging-deploy.yaml


jobs:
deploy:
name: Deploy App
runs-on: ubuntu-latest
environment: production
steps:
- uses: actions/checkout@v3
- uses: superfly/flyctl-actions/setup-flyctl@master
- run: flyctl deploy --remote-only
env:
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }}

9 changes: 8 additions & 1 deletion .github/workflows/staging-deploy.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
name: Staging Deploy

on: pull_request
on:
pull_request:
paths-ignore:
- README.md
- 'json_examples/**'
- 'models/**'
- .github/workflows/prod-deploy.yaml


jobs:
deploy:
Expand Down
2 changes: 1 addition & 1 deletion fly.staging.toml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# fly.toml app configuration file generated for staging-the-office on 2023-10-08T11:24:54-04:00
# fly.staging.toml app configuration file generated for staging-the-office on 2023-10-08T11:24:54-04:00
#
# See https://fly.io/docs/reference/configuration/ for information about how to use this file.
#
Expand Down
17 changes: 17 additions & 0 deletions fly.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# fly.toml app configuration file generated for the-office on 2023-10-08T11:40:22-04:00
#
# See https://fly.io/docs/reference/configuration/ for information about how to use this file.
#

app = "the-office"
primary_region = "ewr"

[build]

[http_service]
internal_port = 8080
force_https = true
auto_stop_machines = true
auto_start_machines = true
min_machines_running = 0
processes = ["app"]

0 comments on commit 553f1da

Please sign in to comment.