update app dockerfile to include new envs
All checks were successful
Build the docker image for the frontend application / build (push) Successful in 35s
All checks were successful
Build the docker image for the frontend application / build (push) Successful in 35s
Signed-off-by: ngn <ngn@ngn.tf>
This commit is contained in:
parent
bcb48d789b
commit
f779a03ae5
@ -26,10 +26,14 @@ jobs:
|
||||
- name: Build image
|
||||
run: |
|
||||
cd app
|
||||
docker build --build-arg WEBSITE_REPORT_URL=https://git.ngn.tf/ngn/website/issues/new \
|
||||
--build-arg WEBSITE_SOURCE_URL=https://git.ngn.tf/ngn/website \
|
||||
--build-arg WEBSITE_APP_URL=https://ngn.tf \
|
||||
--build-arg WEBSITE_API_URL=https://api.ngn.tf \
|
||||
--build-arg WEBSITE_DOC_URL=http://doc:7003 \
|
||||
docker build --build-arg WEBSITE_REPORT_URL=https://git.ngn.tf/ngn/website/issues/new \
|
||||
--build-arg WEBSITE_SOURCE_URL=https://git.ngn.tf/ngn/website \
|
||||
--build-arg WEBSITE_APP_URL_CLEAR=https://ngn.tf \
|
||||
--build-arg WEBSITE_APP_URL_ONION=http://ngntfwmwovvku6eqi7dzzgzv2wzlvq2cqtqha7ccgzub2xnivsuxnuyd.onion \
|
||||
--build-arg WEBSITE_APP_URL_I2P=http://ngn.i2p \
|
||||
--build-arg WEBSITE_API_URL_CLEAR=https://api.ngn.tf \
|
||||
--build-arg WEBSITE_API_URL_ONION=http://api.ngntfwmwovvku6eqi7dzzgzv2wzlvq2cqtqha7ccgzub2xnivsuxnuyd.onion \
|
||||
--build-arg WEBSITE_API_URL_I2P=https://api.ngn.i2p \
|
||||
--build-arg WEBSITE_DOC_URL=http://doc:7003 \
|
||||
--tag ${{env.REGISTRY}}/${{env.IMAGE}}:latest .
|
||||
docker push ${{env.REGISTRY}}/${{env.IMAGE}}:latest
|
||||
|
@ -1,16 +1,31 @@
|
||||
# build the application with node
|
||||
FROM node:23.11.0 AS build
|
||||
|
||||
# app URLs
|
||||
ARG WEBSITE_APP_URL_CLEAR
|
||||
ARG WEBSITE_APP_URL_ONION
|
||||
ARG WEBSITE_APP_URL_I2P
|
||||
|
||||
ENV WEBSITE_APP_URL_CLEAR=$WEBSITE_APP_URL_CLEAR
|
||||
ENV WEBSITE_APP_URL_ONION=$WEBSITE_APP_URL_ONION
|
||||
ENV WEBSITE_APP_URL_I2P=$WEBSITE_APP_URL_I2P
|
||||
|
||||
# API URLs
|
||||
ARG WEBSITE_API_URL_CLEAR
|
||||
ARG WEBSITE_API_URL_ONION
|
||||
ARG WEBSITE_API_URL_I2P
|
||||
|
||||
ENV WEBSITE_API_URL_CLEAR=$WEBSITE_API_URL_CLEAR
|
||||
ENV WEBSITE_API_URL_ONION=$WEBSITE_API_URL_ONION
|
||||
ENV WEBSITE_API_URL_I2P=$WEBSITE_API_URL_I2P
|
||||
|
||||
# other config
|
||||
ARG WEBSITE_REPORT_URL
|
||||
ARG WEBSITE_SOURCE_URL
|
||||
ARG WEBSITE_APP_URL
|
||||
ARG WEBSITE_API_URL
|
||||
ARG WEBSITE_DOC_URL
|
||||
|
||||
ENV WEBSITE_REPORT_URL=$WEBSITE_REPORT_URL
|
||||
ENV WEBSITE_SOURCE_URL=$WEBSITE_SOURCE_URL
|
||||
ENV WEBSITE_APP_URL=$WEBSITE_APP_URL
|
||||
ENV WEBSITE_API_URL=$WEBSITE_API_URL
|
||||
ENV WEBSITE_DOC_URL=$WEBSITE_DOC_URL
|
||||
|
||||
WORKDIR /app
|
||||
|
Loading…
x
Reference in New Issue
Block a user