Skip to content

Commit

Permalink
chore: only push image for prod
Browse files Browse the repository at this point in the history
  • Loading branch information
siobh9 committed Oct 12, 2024
1 parent c2e7e4c commit 4bd3cb7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/nextjs_docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ jobs:
uses: docker/build-push-action@v3
with:
context: .
push: true
tags: ghcr.io/jk-labs-inc/jokerace:${{ github.ref == 'refs/heads/main' && 'prod' || 'dev' }}
push: ${{ github.ref == 'refs/heads/main' }}
tags: ghcr.io/jk-labs-inc/jokerace:prod
build-args: |
NEXT_PUBLIC_SUPABASE_URL= ${{ github.ref == 'refs/heads/main' && secrets.PROD_NEXT_PUBLIC_SUPABASE_URL || secrets.DEV_NEXT_PUBLIC_SUPABASE_URL }}
NEXT_PUBLIC_SUPABASE_ANON_KEY= ${{ github.ref == 'refs/heads/main' && secrets.PROD_NEXT_PUBLIC_SUPABASE_ANON_KEY || secrets.DEV_NEXT_PUBLIC_SUPABASE_ANON_KEY }}
Expand Down

0 comments on commit 4bd3cb7

Please sign in to comment.