Skip to content
Snippets Groups Projects
Commit 8bd3f2fa authored by Dominik Hebeler's avatar Dominik Hebeler
Browse files

fixed build context

parent e20d1cdb
No related branches found
No related tags found
No related merge requests found
Pipeline #7226 passed
......@@ -16,7 +16,7 @@ npm_deps:
stage: build
image: ${NODE_IMAGE}
variables:
npm_config_cache: ${CI_BUILDS_DIR}/pass/.npm
npm_config_cache: ${CI_PROJECT_DIR}/pass/.npm
cache:
key: npm-cache
paths:
......@@ -28,6 +28,7 @@ npm_deps:
script:
- cd pass
- npm i
- chown -R 1000:1000 node_modules
build:
stage: build
......@@ -38,7 +39,7 @@ build:
before_script:
- docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
script:
- docker build --network=host -t ${CI_REGISTRY_IMAGE}/${DOCKER_IMAGE_NAME}:${DOCKER_TAG_NAME} ./build/pass
- docker build --network=host -t ${CI_REGISTRY_IMAGE}/${DOCKER_IMAGE_NAME}:${DOCKER_TAG_NAME} -f ./build/pass/Dockerfile .
- docker push ${CI_REGISTRY_IMAGE}/${DOCKER_IMAGE_NAME}:${DOCKER_TAG_NAME}
after_script:
- docker logout $CI_REGISTRY
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment