The pipeline automates the deployment process for different stages of development, from testing branches to production releases. It uses different Node.js versions and build scripts depending on the target environment.
For the pipeline to run successfully, the following Repository variables must be set in your Bitbucket repository settings:
API_URL: The API endpoint URL for the environment being built.FIREBASE_TOKEN: A Firebase CI/CD token required for deployment.FIREBASE_TARGET_NAME: The name of the Firebase hosting target (e.g., dev, production).SLACK_TOKEN: (Optional) A token for sending deployment notifications to Slack.DEPLOY_SLACK_CHANNEL: (Optional) The Slack channel ID for notifications.JIRA_AUTH_TOKEN: (Optional) An authentication token for Jira integration.Link for Repository variables: https://bitbucket.org/karaokesmartteam/karaokesmart-tv/admin/pipelines/repository-variables
Link for Deployment environment settings and variables: https://bitbucket.org/karaokesmartteam/karaokesmart-tv/admin/pipelines/deployment-settings
Image: The default Docker image used for all pipeline steps is node:16-alpine. Specific steps override this to use node:22-alpine.
definitions)