Commit 23b0d0be authored by Дмитрий Григорьев's avatar Дмитрий Григорьев
Browse files

Update .gitlab-ci.yml

parent 451a3b20
Pipeline #462 failed with stages
in 4 minutes and 20 seconds
......@@ -52,8 +52,8 @@ build_image:
before_script:
- docker login -u $CI_DEPLOY_USER -p $CI_DEPLOY_PASSWORD $CI_REGISTRY
script:
- docker build -t $CI_REGISTRY/$CI_PROD_DOCKER_IMG .
- docker push $CI_REGISTRY/$CI_PROD_DOCKER_IMG
- docker build -t $CI_REGISTRY/$CI_PROD_DOCKER_IMG-prod:$CI_PIPELINE_IID .
- docker push $CI_REGISTRY/$CI_PROD_DOCKER_IMG-prod:$CI_PIPELINE_IID
only:
- master
retry:
......@@ -69,8 +69,8 @@ build_image-dev:
before_script:
- docker login -u $CI_DEPLOY_USER -p $CI_DEPLOY_PASSWORD $CI_REGISTRY
script:
- docker build -t $CI_REGISTRY/$CI_DEV_DOCKER_IMG:$CI_JOB_ID .
- docker push $CI_REGISTRY/$CI_DEV_DOCKER_IMG:$CI_JOB_ID
- docker build -t $CI_REGISTRY/$CI_DEV_DOCKER_IMG-dev:$CI_PIPELINE_IID .
- docker push $CI_REGISTRY/$CI_DEV_DOCKER_IMG-dev:$CI_PIPELINE_IID
only:
- develop
retry:
......@@ -84,7 +84,7 @@ deploy:
before_script:
- docker login -u $CI_DEPLOY_USER -p $CI_DEPLOY_PASSWORD $CI_REGISTRY
script:
- docker pull $CI_REGISTRY/$CI_PROD_DOCKER_IMG
- docker pull $CI_REGISTRY/$CI_PROD_DOCKER_IMG-prod:$CI_PIPELINE_IID
- docker stop $CI_PROD_TG_BOT_NAME || true
- docker rm $CI_PROD_TG_BOT_NAME || true
- docker volume create majordomo_volume_prod
......@@ -98,7 +98,7 @@ deploy:
-v majordomo_volume_prod:/storage
-d
-p $CI_PROD_DOCKER_PORT:$CI_PROD_TG_BOT_API_INT_PORT
$CI_REGISTRY/$CI_PROD_DOCKER_IMG
$CI_REGISTRY/$CI_PROD_DOCKER_IMG-prod:$CI_PIPELINE_IID
only:
- master
retry:
......@@ -112,7 +112,7 @@ deploy-dev:
before_script:
- docker login -u $CI_DEPLOY_USER -p $CI_DEPLOY_PASSWORD $CI_REGISTRY
script:
- docker pull $CI_REGISTRY/$CI_DEV_DOCKER_IMG:$CI_JOB_ID
- docker pull $CI_REGISTRY/$CI_DEV_DOCKER_IMG-dev:$CI_PIPELINE_IID
- docker stop $CI_DEV_TG_BOT_NAME || true
- docker rm $CI_DEV_TG_BOT_NAME || true
- docker volume create majordomo_volume_dev
......@@ -127,7 +127,7 @@ deploy-dev:
-d
-p $CI_DEV_DOCKER_PORT:$CI_DEV_TG_BOT_API_INT_PORT
-p 5005:5005
$CI_REGISTRY/$CI_DEV_DOCKER_IMG:$CI_JOB_ID
$CI_REGISTRY/$CI_DEV_DOCKER_IMG-dev:$CI_PIPELINE_IID
only:
- develop
retry:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment