ci: read VITE env from Gitea action variables instead of hardcoding
Deploy banu-front / deploy (push) Failing after 44m27s
Deploy banu-front / deploy (push) Failing after 44m27s
- deploy.yml now uses ${{ vars.VITE_API_BASE_URL }} / ${{ vars.VITE_USE_MOCKS }}
- Dockerfile drops hardcoded prod IP default for VITE_API_BASE_URL
This commit is contained in:
@@ -12,8 +12,8 @@ jobs:
|
|||||||
IMAGE: banu-front
|
IMAGE: banu-front
|
||||||
CONTAINER: banu-front
|
CONTAINER: banu-front
|
||||||
PORT: '8080'
|
PORT: '8080'
|
||||||
VITE_API_BASE_URL: http://109.122.252.86/api
|
VITE_API_BASE_URL: ${{ vars.VITE_API_BASE_URL }}
|
||||||
VITE_USE_MOCKS: 'false'
|
VITE_USE_MOCKS: ${{ vars.VITE_USE_MOCKS }}
|
||||||
steps:
|
steps:
|
||||||
- name: Clone repository at current commit
|
- name: Clone repository at current commit
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
+1
-1
@@ -12,7 +12,7 @@ RUN npm ci
|
|||||||
|
|
||||||
COPY . .
|
COPY . .
|
||||||
|
|
||||||
ARG VITE_API_BASE_URL=http://109.122.252.86/api
|
ARG VITE_API_BASE_URL
|
||||||
ARG VITE_USE_MOCKS=false
|
ARG VITE_USE_MOCKS=false
|
||||||
|
|
||||||
ENV VITE_API_BASE_URL=$VITE_API_BASE_URL
|
ENV VITE_API_BASE_URL=$VITE_API_BASE_URL
|
||||||
|
|||||||
Reference in New Issue
Block a user