在遇到管道问题时,我在YAML文件中包含了一些脚本,以便将Vue应用程序自动部署到Firebase。但是,当我将代码推送到GitLab 合并/拉请求(PR/MR)时,就不会有管道运行。我还在Gitlab上包含了FIREBASE_TOKEN的环境变量。
下面是我的.gitlab-ci.yaml文件:
image: rambabusaravanan/firebase
stages:
- deploy
cache:
paths:
- node_modules/
key: "$CI_BUILD_REPO"
deploy-prod:
stage: deploy
only:
- master
script:
- yarn
- yarn run build
- firebase use HFB-Frontend-mock --token $FIREBASE_TOKEN
- firebase deploy --only hosting -m "Pipe $CI_PIPELINE_ID Build $CI_BUILD_ID" --token $FIREBASE_TOKEN这是我跟随CI/CD Gitlab教程的教程
然后,PR/MR在没有管道运行的情况下显示如下:

https://stackoverflow.com/questions/60635831
复制相似问题