Currently experiencing an issue with the pipelines involving my YAML
file that automates deployment of a Vue app to Firebase. Despite including scripts in the file and setting up the Environment variable FIREBASE_TOKEN
on GitLab, pushing the code to a GitLab Merge/Pull Request (PR/MR) does not trigger any pipeline.
Here is a snippet of my .gitlab-ci.yaml
file :
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
I was following this tutorial for CI/CD GitLab: tutorial for CI/CD Gitlab
Unfortunately, even after following the tutorial, the PR/MR displays without triggering the pipeline: