We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent de58e7d commit d6e65d3Copy full SHA for d6e65d3
1 file changed
.github/workflows/deploy.yml
@@ -59,9 +59,13 @@ jobs:
59
run: gcloud auth configure-docker --quiet
60
61
- name: Build and Push Frontend
62
+ env:
63
+ API_URL: ${{ secrets.NEXT_PUBLIC_API_BASE_URL }}
64
run: |-
65
# Build using the frontend folder as context
- docker build -t gcr.io/$PROJECT_ID/frontend-service:${{ github.sha }} ./frontend
66
+ docker build \
67
+ --build-arg NEXT_PUBLIC_API_BASE_URL="$API_URL" \
68
+ -t gcr.io/$PROJECT_ID/frontend-service:${{ github.sha }} ./frontend
69
docker push gcr.io/$PROJECT_ID/frontend-service:${{ github.sha }}
70
71
- name: Deploy Frontend to Cloud Run
0 commit comments