[英]Firebase not recognized while using GitLab CI
我正在嘗試使用 GitLab CI/CD 將 Angular 應用程序部署到 Firebase。
我的.gitlab-ci.yml
看起來像那樣
stages:
- build
- test
- deploy
build:
stage: build
script:
- ng build --prod --aot
test:
stage: test
script:
- echo Running tests...
deploy:
stage: deploy
script:
- call npm install -g firebase-tools
- firebase deploy --token $FIREBASE_TOKEN
我在我的本地 PC 上使用gitlab-runner
,即使我已經安裝了我需要的所有東西並且我可以在本地運行這些腳本沒有問題,但我不能用 GitLab CI/CD 做同樣的事情。
說到部署階段,我不斷得到
$ firebase deploy --token $FIREBASE_TOKEN
'firebase' 不是內部或外部命令,也不是可運行的程序或批處理文件。
您需要先安裝它,然后才能使用它。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.