ci: configure dind for local insecure registry
This commit is contained in:
parent
99181d8965
commit
9ca62566cb
1 changed files with 7 additions and 1 deletions
|
|
@ -4,6 +4,7 @@ stages:
|
||||||
variables:
|
variables:
|
||||||
REGISTRY_HOST: "10.10.10.10:5050"
|
REGISTRY_HOST: "10.10.10.10:5050"
|
||||||
IMAGE_NAME: "$REGISTRY_HOST/$CI_PROJECT_PATH"
|
IMAGE_NAME: "$REGISTRY_HOST/$CI_PROJECT_PATH"
|
||||||
|
DOCKER_HOST: "tcp://docker:2375"
|
||||||
DOCKER_DRIVER: overlay2
|
DOCKER_DRIVER: overlay2
|
||||||
DOCKER_TLS_CERTDIR: ""
|
DOCKER_TLS_CERTDIR: ""
|
||||||
# Force clone via IP instead of hostname to bypass Unraid Docker DNS issues
|
# Force clone via IP instead of hostname to bypass Unraid Docker DNS issues
|
||||||
|
|
@ -14,7 +15,12 @@ docker-build:
|
||||||
stage: build
|
stage: build
|
||||||
image: docker:24.0.5
|
image: docker:24.0.5
|
||||||
services:
|
services:
|
||||||
- docker:24.0.5-dind
|
- name: docker:24.0.5-dind
|
||||||
|
command:
|
||||||
|
- "--host=tcp://0.0.0.0:2375"
|
||||||
|
- "--host=unix:///tmp/docker.sock"
|
||||||
|
- "--tls=false"
|
||||||
|
- "--insecure-registry=10.10.10.10:5050"
|
||||||
rules:
|
rules:
|
||||||
- if: $CI_PIPELINE_SOURCE == "push" && $CI_COMMIT_BRANCH
|
- if: $CI_PIPELINE_SOURCE == "push" && $CI_COMMIT_BRANCH
|
||||||
before_script:
|
before_script:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue