diff --git a/.woodpecker.yml b/.woodpecker.yml index 7ae4f99..7532730 100644 --- a/.woodpecker.yml +++ b/.woodpecker.yml @@ -6,6 +6,7 @@ pipeline: repo: elara6331/lure-web dockerfile: docker/Dockerfile platforms: linux/amd64,linux/arm64 + build_args: api_url=https://api.lure.elara.ws tag: latest when: branch: public @@ -22,4 +23,4 @@ pipeline: - PLUGIN_WATCH_DEPLOYMENT_TIMEOUT=10m when: branch: public - event: push \ No newline at end of file + event: push diff --git a/docker/Dockerfile b/docker/Dockerfile index 14aa393..2415997 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -1,10 +1,13 @@ FROM node:19-alpine +ARG api_url +ENV LURE_WEB_API_URL $api_url + RUN apk add git RUN git clone https://gitea.elara.ws/Elara6331/lure-web RUN cd lure-web && \ npm i && \ - LURE_WEB_API_URL='https://api.lure.elara.ws' npm run build + npm run build WORKDIR /lure-web ENTRYPOINT node build