【问题标题】:how to fix: This GitLab CI configuration is invalid: jobs:deploy_production script can't be blank如何修复:此 GitLab CI 配置无效:jobs:deploy_production 脚本不能为空
【发布时间】:2019-06-11 15:52:14
【问题描述】:

我正在尝试 GitLab 作为我的第一个示例。 我在这里看不到错误在哪里:

这适用于在 gitlab 上运行 firebase、vue.js、node.js 的 windows

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 配置无效:jobs:deploy_production 脚本 不能为空

【问题讨论】:

    标签: gitlab gitlab-ci-runner


    【解决方案1】:

    您在deploy_production 作业中指定了stage,但没有定义stages

    添加:

    stages:
      - deploy
    

    在你的工作定义之前。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2018-01-27
      • 2021-09-07
      • 2019-05-03
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多