Skip to content
Snippets Groups Projects
Commit c794f15f authored by Andrey Azov's avatar Andrey Azov
Browse files

Pass the PUBLIC_PATH variable to the container at build-time

parent d9cf398b
No related branches found
No related tags found
No related merge requests found
Pipeline #182223 passed with stages
in 1 minute and 29 seconds
......@@ -15,7 +15,7 @@ variables:
before_script:
- docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
script:
- docker build -t ${DOCKER_IMAGE} --no-cache .
- docker build -t ${DOCKER_IMAGE} --build-arg PUBLIC_PATH=${PUBLIC_PATH} --no-cache .
- docker push ${DOCKER_IMAGE}
- docker rmi ${DOCKER_IMAGE}
- docker logout $CI_REGISTRY
......
......@@ -9,6 +9,8 @@ COPY ${SOURCE_DIR} ${TARGET_DIR}
WORKDIR ${TARGET_DIR}
ARG PUBLIC_PATH=/api
RUN npm ci && \
npm run build
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment