diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 57ea6ff7333dc3ce5883fcce150f67a4f87a5cc4..8f829c16ca4e2ee41c0842b502d537c6170c0c8f 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -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