From 0828009d70bdffc9dacfcd3d9df0f6730f162a03 Mon Sep 17 00:00:00 2001 From: Elbarae Date: Wed, 12 Feb 2025 22:47:16 +0100 Subject: [PATCH] fix: fix client env variable --- .github/workflows/build_deploy.yaml | 2 +- .github/workflows/test.yaml | 2 +- README.md | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build_deploy.yaml b/.github/workflows/build_deploy.yaml index 085e175..98c77ea 100644 --- a/.github/workflows/build_deploy.yaml +++ b/.github/workflows/build_deploy.yaml @@ -50,7 +50,7 @@ jobs: cache-to: type=inline build-args: | ARCH=linux/amd64 - API_AUTHORITY=${{ secrets.API_AUTHORITY }} + VITE_API_URL=${{ secrets.API_URL }} - name: Build & Publish toiki-nginx if: steps.filter.outputs.client == 'true' || steps.filter.outputs.nginx == 'true' diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 3c48d1d..f17abb5 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -24,7 +24,7 @@ jobs: cache-to: type=inline build-args: | ARCH=linux/amd64 - API_AUTHORITY=${{ secrets.API_AUTHORITY }} + VITE_API_URL=${{ secrets.API_URL }} - name: Build server uses: docker/build-push-action@v2 diff --git a/README.md b/README.md index e7f7e55..12885f0 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ ## Client ``` -docker build --build-arg ARCH=linux/amd64 --build-arg API_AUTHORITY=localhost:8000 client -t toiki-build +docker build --build-arg ARCH=linux/amd64 --build-arg VITE_API_URL=localhost:8000 client -t toiki-build ``` change the ARCH build arg according to your architecture.