Skip to content

Commit

Permalink
move other parts of flyprocess around
Browse files Browse the repository at this point in the history
  • Loading branch information
thadk committed Nov 6, 2024
1 parent e76808f commit a705684
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/heat-stack.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ on:
env:
rules-engine-working-directory: python
heat-stack-working-directory: heat-stack
fly-io-working-directory:

defaults:
run:
Expand Down Expand Up @@ -188,7 +189,7 @@ jobs:
uses: SebRollen/[email protected]
id: app_name
with:
file: '${{ env.heat-stack-working-directory }}/fly.toml'
file: '${{ env.fly-io-working-directory }}/fly.toml'
field: 'app'

# move Dockerfile to root
Expand All @@ -209,7 +210,7 @@ jobs:

- name: 🚀 Deploy Staging
if: ${{ github.ref == 'refs/heads/dev' }}
working-directory: ${{ env.heat-stack-working-directory }}
working-directory: ${{ env.fly-io-working-directory }}
run:
flyctl deploy --remote-only --build-arg COMMIT_SHA=${{ github.sha }}
--app ${{ steps.app_name.outputs.value }}-staging
Expand All @@ -218,7 +219,7 @@ jobs:

- name: 🚀 Deploy Production
if: ${{ github.ref == 'refs/heads/main' || github.ref == 'refs/heads/gha-deployment' }}
working-directory: ${{ env.heat-stack-working-directory }}
working-directory: ${{ env.fly-io-working-directory }}
run:
flyctl deploy --remote-only --build-arg COMMIT_SHA=${{ github.sha }}
env:
Expand Down

0 comments on commit a705684

Please sign in to comment.