Skip to content

Commit

Permalink
Try providing the env variable another way
Browse files Browse the repository at this point in the history
  • Loading branch information
silvenon committed Mar 30, 2024
1 parent 4784fd6 commit 47d96b2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -155,17 +155,17 @@ jobs:

- name: Set up Fly
uses: superfly/flyctl-actions/setup-flyctl@1.5
env:
CLOUDINARY_URL: ${{ secrets.CLOUDINARY_URL }}

- name: Deploy Staging
if: ${{ github.ref == 'refs/heads/dev' }}
run: flyctl deploy --remote-only --build-arg COMMIT_SHA=${{ github.sha }} --app ${{ steps.app_name.outputs.value }}-staging
env:
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }}
CLOUDINARY_URL: ${{ secrets.CLOUDINARY_URL }}

- name: Deploy Production
if: ${{ github.ref == 'refs/heads/main' }}
run: flyctl deploy --remote-only --build-arg COMMIT_SHA=${{ github.sha }} --app ${{ steps.app_name.outputs.value }}
env:
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }}
CLOUDINARY_URL: ${{ secrets.CLOUDINARY_URL }}

0 comments on commit 47d96b2

Please # to comment.