Skip to content

Commit

Permalink
backend urlをenvに追加
Browse files Browse the repository at this point in the history
  • Loading branch information
piny940 committed Oct 23, 2024
1 parent f6a2015 commit 8c45081
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/prd-deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,6 @@ jobs:
gh-token: ${{ secrets.GITHUB_TOKEN }}
github-actor: ${{ github.actor }}
tags: ghcr.io/${{ github.repository }}-frontend:1.0.${{ github.run_number }}
path: "./frontend"
path: "./frontend"
build-args: |
- NEXT_PUBLIC_BACKEND_URL=http://auth.default.svc.cluster.local:8080
5 changes: 4 additions & 1 deletion .github/workflows/stg-deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,8 @@ jobs:
github-actor: ${{ github.actor }}
tags: ghcr.io/${{ github.repository }}-frontend:stg-${{ github.sha }}-${{ github.run_number }}
path: "./frontend"
build-args: |
- NEXT_PUBLIC_BACKEND_URL=http://stg-auth.default.svc.cluster.local:8080
stg-build-frontend-main:
runs-on: ubuntu-latest
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
Expand All @@ -58,4 +60,5 @@ jobs:
github-actor: ${{ github.actor }}
tags: ghcr.io/${{ github.repository }}-frontend:stg-${{ github.sha }}-${{ github.run_number }}
path: "./frontend"

build-args: |
- NEXT_PUBLIC_BACKEND_URL=http://stg-auth.default.svc.cluster.local:8080

0 comments on commit 8c45081

Please sign in to comment.