ci: production preparation

This commit is contained in:
skeris 2024-01-30 02:14:52 +03:00
parent 72599a0270
commit 52208fde84
2 changed files with 18 additions and 0 deletions

@ -20,5 +20,15 @@ deploy-to-staging:
tags: tags:
- front - front
- staging - staging
rules:
- if: "$CI_COMMIT_BRANCH == $STAGING_BRANCH"
extends: .deploy_template extends: .deploy_template
deploy-to-prod:
tags:
- front
- prod
rules:
- if: "$CI_COMMIT_BRANCH == $PRODUCTION_BRANCH"
extends: .deploy_template

@ -0,0 +1,8 @@
services:
hub:
container_name: hub
restart: unless-stopped
image: $CI_REGISTRY_IMAGE/main:$CI_COMMIT_REF_SLUG.$CI_PIPELINE_ID
hostname: hub
tty: true