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
|
||||
CONTAINER: banu-front
|
||||
PORT: '8080'
|
||||
VITE_API_BASE_URL: http://109.122.252.86/api
|
||||
VITE_USE_MOCKS: 'false'
|
||||
VITE_API_BASE_URL: ${{ vars.VITE_API_BASE_URL }}
|
||||
VITE_USE_MOCKS: ${{ vars.VITE_USE_MOCKS }}
|
||||
steps:
|
||||
- name: Clone repository at current commit
|
||||
run: |
|
||||
|
||||
+1
-1
@@ -12,7 +12,7 @@ RUN npm ci
|
||||
|
||||
COPY . .
|
||||
|
||||
ARG VITE_API_BASE_URL=http://109.122.252.86/api
|
||||
ARG VITE_API_BASE_URL
|
||||
ARG VITE_USE_MOCKS=false
|
||||
|
||||
ENV VITE_API_BASE_URL=$VITE_API_BASE_URL
|
||||
|
||||
Reference in New Issue
Block a user