diff --git a/.github/workflows/prd-deploy.yaml b/.github/workflows/prd-deploy.yaml index 4ecab94..0d17c4f 100644 --- a/.github/workflows/prd-deploy.yaml +++ b/.github/workflows/prd-deploy.yaml @@ -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" \ No newline at end of file + path: "./frontend" + build-args: | + - NEXT_PUBLIC_BACKEND_URL=http://auth.default.svc.cluster.local:8080 \ No newline at end of file diff --git a/.github/workflows/stg-deploy.yaml b/.github/workflows/stg-deploy.yaml index e346ba5..717a00c 100644 --- a/.github/workflows/stg-deploy.yaml +++ b/.github/workflows/stg-deploy.yaml @@ -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' @@ -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