Files
schemas-app/.gitlab-ci.yml
T
argoyle d5a3481678 ci: remove manual deployment condition for production branch
This change eliminates the manual deployment requirement in the CI/CD 
pipeline for the production branch, allowing for automatic deployments. 
It streamlines the deployment process, ensuring that changes to the 
production branch are deployed without additional approval steps.
2025-11-23 13:14:29 +01:00

36 lines
777 B
YAML

include:
- template: 'Workflows/MergeRequest-Pipelines.gitlab-ci.yml'
- project: unboundsoftware/ci-templates
file: Defaults.gitlab-ci.yml
- project: unboundsoftware/ci-templates
file: Pre-Commit-Node.gitlab-ci.yml
stages:
- build
- deploy-prod
image: buildtool/build-tools:${BUILDTOOLS_VERSION}
build:
stage: build
script:
- build
- curl -Os https://uploader.codecov.io/latest/linux/codecov
- chmod +x codecov
- ./codecov -t ${CODECOV_TOKEN} -R $CI_PROJECT_DIR -C $CI_COMMIT_SHA -r $CI_PROJECT_PATH
- push
artifacts:
paths:
- k8s
deploy-to-prod:
stage: deploy-prod
script:
- echo Deploy Schemas App to PROD.
- deploy prod
environment:
name: prod
resource_group: prod
rules:
- if: $CI_DEFAULT_BRANCH == $CI_COMMIT_BRANCH