Skip to content

Commit

Permalink
update nextjs env
Browse files Browse the repository at this point in the history
  • Loading branch information
Kurtyjlee committed Oct 11, 2024
1 parent 6191e71 commit 1de9cd3
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@ jobs:
env:
NEXT_PUBLIC_QUESTION_SERVICE_URL: ${{ secrets.NEXT_PUBLIC_QUESTION_SERVICE_URL }}
NEXT_PUBLIC_AUTH_SERVICE_URL: ${{ secrets.NEXT_PUBLIC_AUTH_SERVICE_URL }}
NEXT_PUBLIC_USER_SERVICE_URL: ${{ secrets.NEXT_PUBLIC_USER_SERVICE_URL }}
USER_SERVICE_URL: ${{ secrets.USER_SERVICE_URL }}
QUESTION_SERVICE_URL: ${{ secrets.QUESTION_SERVICE_URL }}
run: |
gcloud builds submit --config cloudbuild.yaml \
--substitutions _NEXT_PUBLIC_QUESTION_SERVICE_URL=$NEXT_PUBLIC_QUESTION_SERVICE_URL,_NEXT_PUBLIC_AUTH_SERVICE_URL=$NEXT_PUBLIC_AUTH_SERVICE_URL
6 changes: 6 additions & 0 deletions cloudbuild.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,12 @@ steps:
"NEXT_PUBLIC_QUESTION_SERVICE_URL=${_NEXT_PUBLIC_QUESTION_SERVICE_URL}",
"--build-arg",
"NEXT_PUBLIC_AUTH_SERVICE_URL=${_NEXT_PUBLIC_AUTH_SERVICE_URL}",
"--build-arg",
"NEXT_PUBLIC_USER_SERVICE_URL=${_NEXT_PUBLIC_USER_SERVICE_URL}",
"--build-arg",
"USER_SERVICE_URL=${_USER_SERVICE_URL}",
"--build-arg",
"QUESTION_SERVICE_URL=${_QUESTION_SERVICE_URL}",
"-f",
"peerprep-fe/Dockerfile",
"peerprep-fe",
Expand Down

0 comments on commit 1de9cd3

Please sign in to comment.