adminFront/.gitlab-ci.yml
2024-05-21 10:41:31 +03:00

34 lines
719 B
YAML

include:
- project: "devops/pena-continuous-integration"
file: "/templates/docker/build-template.gitlab-ci.yml"
- project: "devops/pena-continuous-integration"
file: "/templates/docker/deploy-template.gitlab-ci.yml"
stages:
- build
- deploy
build-app:
tags:
- frontbuild
stage: build
extends: .build_template
variables:
DOCKER_BUILD_PATH: "./Dockerfile"
PRODUCTION_BRANCH: main
STAGING_BRANCH: staging
deploy-to-staging:
tags:
- front
- staging
rules:
- if: "$CI_COMMIT_BRANCH == $STAGING_BRANCH"
extends: .deploy_template
deploy-to-prod:
tags:
- front
- prod
rules:
- if: "$CI_COMMIT_BRANCH == $PRODUCTION_BRANCH"
extends: .deploy_template