Name registry in dind and make sure it's running
This commit is contained in:
@ -41,14 +41,16 @@ before_script:
|
||||
start_registry:
|
||||
stage: docker_setup
|
||||
script:
|
||||
- docker run -d -p 5000:5000 registry:2
|
||||
- docker run -d -p 5000:5000 --name registry registry:2
|
||||
- docker ps -a
|
||||
|
||||
# Make sure we can build a docker image
|
||||
# It's pushed to the pipeline-local registry which acts as a cache
|
||||
build_docker:
|
||||
stage: docker_test
|
||||
script:
|
||||
# Make sure we can connect to the registry service
|
||||
- docker ps -a
|
||||
- docker ps -a | grep registry
|
||||
- docker pull $CI_REGISTRY_IMAGE:latest || true
|
||||
- docker build --cache-from $CI_REGISTRY_IMAGE:latest --tag $CI_LOCAL_REGISTRY_IMAGE:$CI_COMMIT_SHORT_SHA --tag $CI_LOCAL_REGISTRY_IMAGE:latest .
|
||||
- docker push $CI_LOCAL_REGISTRY_IMAGE:$CI_COMMIT_SHORT_SHA
|
||||
|
Reference in New Issue
Block a user