Browse Source

CI: don't use insecure docker registries anymore

We are not using an plain http registry on the LAN anymore. We want to
only use https now.
ENGINE-866
Devan Carpenter 4 months ago
parent
commit
e67f0ce68d
Signed by untrusted user: dvn GPG Key ID: E1707CFFD7B85A02
1 changed files with 0 additions and 12 deletions
  1. +0
    -12
      .gitlab-ci-files/common-prepare.yml

+ 0
- 12
.gitlab-ci-files/common-prepare.yml View File

@ -8,23 +8,11 @@
- 'which rsync || ( sudo apt-get update -y && sudo apt-get install rsync -y )'
- 'which make || ( sudo apt-get update -y && sudo apt-get install make -y )'
.enable_insecure_docker_registries: &enable_insecure_docker_registries
# Enable "insecure" docker registries
- |
cat <<EOD > /tmp/docker-daemon.json
{
"insecure-registries" : ["${DOCKER_REGISTRY_HOST}"]
}
EOD
- sudo cp /tmp/docker-daemon.json /etc/docker/daemon.json
- sudo systemctl restart docker.service
.standard_job:
tags: [kvm]
before_script:
- *ensure_docker
- *ensure_rsync
- *enable_insecure_docker_registries
.make_in_docker:
extends: .standard_job


Loading…
Cancel
Save