Gitlab Pipeline作业角度构建失败

时间:2020-01-10 10:34:29

标签: angular build gitlab gitlab-ci production

当我建立项目时,本地构建成功,但是当gitlab管道构建项目失败时。

错误:

ERROR in src/app/services/office.service.ts:4:28 - error TS2307: Cannot find module '../models/bsResponse'.

当我运行ng serve时,我没有这个错误,当我在本地构建项目时

image: docker:latest services: - docker:dind stages: - build - deploy variables: DOCKER_DRIVER: overlay2 before_script: - apk update && apk add --no-cache bash Build Docker image: stage: build before_script: - apk add --no-cache py-pip git - pip install docker-compose==1.23 - echo -n $CI_REGISTRY_PASSWORD | docker login -u $CI_REGISTRY_USER --password-stdin $CI_REGISTRY script: - docker-compose -f docker-compose.build.yml build - docker-compose -f docker-compose.build.yml push only: refs: - develop Deploy to Portainer: stage: deploy before_script: - apk add --no-cache curl script: - curl -X POST $PORTAINER_WEBHOOK dependencies: [] only: refs: - develop

0 个答案:

没有答案