Skip to content

Commit

Permalink
update actions
Browse files Browse the repository at this point in the history
  • Loading branch information
henriquepw committed Sep 8, 2024
1 parent 88102c9 commit 06c94c5
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 28 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/fly-prd.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: PRD - Fly Deploy
on:
push:
tags:
- "*"
jobs:
deploy:
name: Deploy app
runs-on: ubuntu-latest
concurrency: deploy-group
steps:
- uses: actions/checkout@v4
- uses: superfly/flyctl-actions/setup-flyctl@master
- run: echo $ENV > .env
- run: echo $FLY_PRD > fly.toml
- run: flyctl deploy --remote-only
env:
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }}
ENV: ${{ secrets.ENV_PRD }}
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
# See https://fly.io/docs/app-guides/continuous-deployment-with-github-actions/

name: Fly Deploy
name: STG - Fly Deploy
on:
push:
branches:
Expand All @@ -9,10 +7,13 @@ jobs:
deploy:
name: Deploy app
runs-on: ubuntu-latest
concurrency: deploy-group # optional: ensure only one action runs at a time
concurrency: deploy-group
steps:
- uses: actions/checkout@v4
- uses: superfly/flyctl-actions/setup-flyctl@master
- run: echo $ENV > .env
- run: echo $FLY_STG > fly.toml
- run: flyctl deploy --remote-only
env:
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }}
ENV: ${{ secrets.ENV_STG }}
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,6 @@ static/css/output.css

# mac stuff
.DS_Store

# fly config
fly.toml
24 changes: 0 additions & 24 deletions fly.toml

This file was deleted.

0 comments on commit 06c94c5

Please sign in to comment.