Move api url setting to docker build arg
This commit is contained in:
parent
d23da62dfc
commit
58cf7a72bb
@ -6,6 +6,7 @@ pipeline:
|
|||||||
repo: elara6331/lure-web
|
repo: elara6331/lure-web
|
||||||
dockerfile: docker/Dockerfile
|
dockerfile: docker/Dockerfile
|
||||||
platforms: linux/amd64,linux/arm64
|
platforms: linux/amd64,linux/arm64
|
||||||
|
build_args: api_url=https://api.lure.elara.ws
|
||||||
tag: latest
|
tag: latest
|
||||||
when:
|
when:
|
||||||
branch: public
|
branch: public
|
||||||
@ -22,4 +23,4 @@ pipeline:
|
|||||||
- PLUGIN_WATCH_DEPLOYMENT_TIMEOUT=10m
|
- PLUGIN_WATCH_DEPLOYMENT_TIMEOUT=10m
|
||||||
when:
|
when:
|
||||||
branch: public
|
branch: public
|
||||||
event: push
|
event: push
|
||||||
|
@ -1,10 +1,13 @@
|
|||||||
FROM node:19-alpine
|
FROM node:19-alpine
|
||||||
|
|
||||||
|
ARG api_url
|
||||||
|
ENV LURE_WEB_API_URL $api_url
|
||||||
|
|
||||||
RUN apk add git
|
RUN apk add git
|
||||||
RUN git clone https://gitea.elara.ws/Elara6331/lure-web
|
RUN git clone https://gitea.elara.ws/Elara6331/lure-web
|
||||||
RUN cd lure-web && \
|
RUN cd lure-web && \
|
||||||
npm i && \
|
npm i && \
|
||||||
LURE_WEB_API_URL='https://api.lure.elara.ws' npm run build
|
npm run build
|
||||||
|
|
||||||
WORKDIR /lure-web
|
WORKDIR /lure-web
|
||||||
ENTRYPOINT node build
|
ENTRYPOINT node build
|
||||||
|
Loading…
Reference in New Issue
Block a user