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" build-app: stage: build tags: - nodebuild extends: .build_template variables: DOCKER_BUILD_PATH: "./Dockerfile" PRODUCTION_BRANCH: main STAGING_BRANCH: staging deploy-to-staging: tags: - staging rules: - if: "$CI_COMMIT_BRANCH == $STAGING_BRANCH" extends: .deploy_template deploy-to-prod: rules: - if: "$CI_COMMIT_BRANCH == $PRODUCTION_BRANCH" tags: - prod extends: .deploy_template