mirror of
https://github.com/elyby/chrly.git
synced 2024-11-27 01:01:59 +05:30
На этап сборки docker контейнера возвращено использование репозитория
This commit is contained in:
parent
971155485b
commit
fb4ae46e29
@ -24,8 +24,6 @@ variables:
|
|||||||
|
|
||||||
.docker_template: &setup_docker_environment
|
.docker_template: &setup_docker_environment
|
||||||
image: docker:latest
|
image: docker:latest
|
||||||
variables:
|
|
||||||
GIT_STRATEGY: none
|
|
||||||
before_script:
|
before_script:
|
||||||
- docker login -u gitlab-ci -p $CI_BUILD_TOKEN registry.ely.by
|
- docker login -u gitlab-ci -p $CI_BUILD_TOKEN registry.ely.by
|
||||||
- export TEMP_IMAGE_NAME="$CONTAINER_IMAGE:$CI_PIPELINE_ID"
|
- export TEMP_IMAGE_NAME="$CONTAINER_IMAGE:$CI_PIPELINE_ID"
|
||||||
@ -59,6 +57,8 @@ build docker image:
|
|||||||
push dev:
|
push dev:
|
||||||
<<: *setup_docker_environment
|
<<: *setup_docker_environment
|
||||||
stage: push
|
stage: push
|
||||||
|
variables:
|
||||||
|
GIT_STRATEGY: none
|
||||||
script:
|
script:
|
||||||
- export IMAGE_NAME="$CONTAINER_IMAGE:dev"
|
- export IMAGE_NAME="$CONTAINER_IMAGE:dev"
|
||||||
- docker tag $TEMP_IMAGE_NAME $IMAGE_NAME
|
- docker tag $TEMP_IMAGE_NAME $IMAGE_NAME
|
||||||
@ -69,6 +69,8 @@ push dev:
|
|||||||
push tag:
|
push tag:
|
||||||
<<: *setup_docker_environment
|
<<: *setup_docker_environment
|
||||||
stage: push
|
stage: push
|
||||||
|
variables:
|
||||||
|
GIT_STRATEGY: none
|
||||||
script:
|
script:
|
||||||
- export IMAGE_NAME="$CONTAINER_IMAGE:$CI_BUILD_TAG"
|
- export IMAGE_NAME="$CONTAINER_IMAGE:$CI_BUILD_TAG"
|
||||||
- export LATEST_IMAGE_NAME="$CONTAINER_IMAGE:latest"
|
- export LATEST_IMAGE_NAME="$CONTAINER_IMAGE:latest"
|
||||||
|
Loading…
Reference in New Issue
Block a user