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:
|
||||
REGISTRY_HOST: "10.10.10.10:5050"
|
||||
IMAGE_NAME: "$REGISTRY_HOST/$CI_PROJECT_PATH"
|
||||
DOCKER_HOST: "tcp://docker:2375"
|
||||
DOCKER_DRIVER: overlay2
|
||||
DOCKER_TLS_CERTDIR: ""
|
||||
# Force clone via IP instead of hostname to bypass Unraid Docker DNS issues
|
||||
|
|
@ -14,7 +15,12 @@ docker-build:
|
|||
stage: build
|
||||
image: docker:24.0.5
|
||||
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:
|
||||
- if: $CI_PIPELINE_SOURCE == "push" && $CI_COMMIT_BRANCH
|
||||
before_script:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue