Skip to content

Commit

Permalink
extract backend url to variable
Browse files Browse the repository at this point in the history
  • Loading branch information
t0lia committed Jul 2, 2024
1 parent 12e3350 commit d210fc1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ jobs:
tags: retypeme/retypeme-frontend-uat:latest
build-args: |
NEXT_PUBLIC_ENV_LOCAL_INFURA_AMOY_API_KEY=${{ secrets.NEXT_PUBLIC_ENV_LOCAL_INFURA_AMOY_API_KEY }}
NEXT_PUBLIC_API_DOMAIN=${{ secret.NEXT_PUBLIC_API_DOMAIN_UAT }}
NEXT_PUBLIC_API_DOMAIN=${{ secrets.NEXT_PUBLIC_API_DOMAIN_UAT }}
- name: Build Docker frontend image
uses: docker/build-push-action@v5
Expand All @@ -44,4 +44,4 @@ jobs:
tags: retypeme/retypeme-frontend-prod:latest
build-args: |
NEXT_PUBLIC_ENV_LOCAL_INFURA_AMOY_API_KEY=${{ secrets.NEXT_PUBLIC_ENV_LOCAL_INFURA_AMOY_API_KEY }}
NEXT_PUBLIC_API_DOMAIN=${{ secret.NEXT_PUBLIC_API_DOMAIN_PROD }}
NEXT_PUBLIC_API_DOMAIN=${{ secrets.NEXT_PUBLIC_API_DOMAIN_PROD }}
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ jobs:
tags: retypeme/retypeme-frontend-uat:${{ env.newTag }}, retypeme/retypeme-frontend-uat:latest
build-args: |
NEXT_PUBLIC_ENV_LOCAL_INFURA_AMOY_API_KEY=${{ secrets.NEXT_PUBLIC_ENV_LOCAL_INFURA_AMOY_API_KEY }}
NEXT_PUBLIC_API_DOMAIN=${{ secret.NEXT_PUBLIC_API_DOMAIN_UAT }}
NEXT_PUBLIC_API_DOMAIN=${{ secrets.NEXT_PUBLIC_API_DOMAIN_UAT }}
- name: Build and push Docker frontend image
uses: docker/build-push-action@v5
Expand All @@ -80,4 +80,4 @@ jobs:
tags: retypeme/retypeme-frontend-prod:${{ env.newTag }}, retypeme/retypeme-frontend-prod:latest
build-args: |
NEXT_PUBLIC_ENV_LOCAL_INFURA_AMOY_API_KEY=${{ secrets.NEXT_PUBLIC_ENV_LOCAL_INFURA_AMOY_API_KEY }}
NEXT_PUBLIC_API_DOMAIN=${{ secret.NEXT_PUBLIC_API_DOMAIN_PROD }}
NEXT_PUBLIC_API_DOMAIN=${{ secrets.NEXT_PUBLIC_API_DOMAIN_PROD }}

0 comments on commit d210fc1

Please sign in to comment.