如何修复:此GitLab CI配置无效:作业:部署\u生产脚本不能为空
我正在尝试GitLab作为我的第一个示例。 我看不出这里的错误在哪里: 这适用于在gitlab上运行firebase、vue.js、node.js的windows如何修复:此GitLab CI配置无效:作业:部署\u生产脚本不能为空,gitlab,gitlab-ci-runner,Gitlab,Gitlab Ci Runner,我正在尝试GitLab作为我的第一个示例。 我看不出这里的错误在哪里: 这适用于在gitlab上运行firebase、vue.js、node.js的windows image: node:alpine cache: paths: - node_modules/ deploy_production: stage: deploy environment: Production only: - master script: -
image: node:alpine
cache:
paths:
- node_modules/
deploy_production:
stage: deploy
environment: Production
only:
- master
script:
- npm install
- npm i -g firebase tools
- npm run build
- firebase deploy --non-interactive --token "1/CYHKW-CuYsKOcy2Eo6_oC9akwGjyqtmtRZok93xb5VY"
此GitLab CI配置无效:作业:部署生产脚本
不能是空白的
在部署生产作业中指定阶段,但不定义阶段
加:
stages:
- deploy
在你的工作定义之前