direct values provided
This commit is contained in:
@@ -19,8 +19,9 @@ docker-build:
|
|||||||
--context "${CI_PROJECT_DIR}"
|
--context "${CI_PROJECT_DIR}"
|
||||||
--dockerfile "${CI_PROJECT_DIR}/Dockerfile"
|
--dockerfile "${CI_PROJECT_DIR}/Dockerfile"
|
||||||
--destination "${DOCKER_IMAGE_NAME}"
|
--destination "${DOCKER_IMAGE_NAME}"
|
||||||
--build-arg "VITE_BACKEND_URL=${VITE_BACKEND_URL}"
|
--build-arg "VITE_BACKEND_URL=http://olympus-gateway.gcp.it/hermione"
|
||||||
--build-arg "LOCAL_DNS=${LOCAL_DNS}"
|
--build-arg "IP_ADDRESS=34.159.118.61"
|
||||||
|
--build-arg "LOCAL_DNS=olympus-gateway.gcp.it"
|
||||||
# Run this job in a branch where a Dockerfile exists
|
# Run this job in a branch where a Dockerfile exists
|
||||||
rules:
|
rules:
|
||||||
- if: $CI_COMMIT_BRANCH
|
- if: $CI_COMMIT_BRANCH
|
||||||
|
|||||||
@@ -24,7 +24,8 @@ FROM nginx:latest as prod
|
|||||||
|
|
||||||
# Add custom DNS mapping
|
# Add custom DNS mapping
|
||||||
ARG LOCAL_DNS
|
ARG LOCAL_DNS
|
||||||
RUN echo "$LOCAL_DNS" >> /etc/hosts
|
ARG IP_ADDRESS
|
||||||
|
RUN echo "$IP_ADDRESS $LOCAL_DNS" >> /etc/hosts
|
||||||
|
|
||||||
RUN cat /etc/hosts
|
RUN cat /etc/hosts
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user