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: ...@@ -16,7 +16,7 @@ npm_deps:
stage: build stage: build
image: ${NODE_IMAGE} image: ${NODE_IMAGE}
variables: variables:
npm_config_cache: ${CI_BUILDS_DIR}/pass/.npm npm_config_cache: ${CI_PROJECT_DIR}/pass/.npm
cache: cache:
key: npm-cache key: npm-cache
paths: paths:
...@@ -28,6 +28,7 @@ npm_deps: ...@@ -28,6 +28,7 @@ npm_deps:
script: script:
- cd pass - cd pass
- npm i - npm i
- chown -R 1000:1000 node_modules
build: build:
stage: build stage: build
...@@ -38,7 +39,7 @@ build: ...@@ -38,7 +39,7 @@ build:
before_script: before_script:
- docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY - docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
script: 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} - docker push ${CI_REGISTRY_IMAGE}/${DOCKER_IMAGE_NAME}:${DOCKER_TAG_NAME}
after_script: after_script:
- docker logout $CI_REGISTRY - 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