小编Luc*_*ler的帖子

GitLab CI失败,出现@ angular / cli

我正在尝试使用GitLab CI将Angular 4应用程序部署到Firebase,但是失败了。

这是我的CI配置:

image: node:latest

cache:
  paths:
    - node_modules/

stages:
  - setup
  - build
  - deploy

setup:
  stage: setup
  script:
    - npm install
  only:
    - master

build:
  stage: build
  script:
    - npm install -g @angular/cli
    - ng build -prod
  only:
    - master

deploy:
  stage: deploy
  script:
    - npm install -g @angular/cli
    - npm install -g firebase-tools
    - ng build -prod
    - firebase use --token $FIREBASE_DEPLOY_KEY production
    - firebase deploy -m "Pipeline $CI_PIPELINE_ID, build $CI_BUILD_ID" --non-interactive --token $FIREBASE_DEPLOY_KEY
  only:
    - …
Run Code Online (Sandbox Code Playgroud)

gitlab-ci

5
推荐指数
1
解决办法
2543
查看次数

标签 统计

gitlab-ci ×1