diff options
| author | Jenkins <jenkins@review.openstack.org> | 2017-01-06 18:16:36 +0000 |
|---|---|---|
| committer | Gerrit Code Review <review@openstack.org> | 2017-01-06 18:16:36 +0000 |
| commit | faea5b91141406c82bd2e029da9aeeb9afa8a200 (patch) | |
| tree | 67807a7407f261bac1d1d4221303e36b4da2f953 /tools/setup_gate.sh | |
| parent | 3ba4b45b3a88aaf51f76affea545fbf6ce20e820 (diff) | |
| parent | cef39561ac21c23d8a58222b66244505826394a0 (diff) | |
| download | kolla-faea5b91141406c82bd2e029da9aeeb9afa8a200.tar.gz kolla-faea5b91141406c82bd2e029da9aeeb9afa8a200.zip | |
Merge "packing and uploading registry"
Diffstat (limited to 'tools/setup_gate.sh')
| -rwxr-xr-x | tools/setup_gate.sh | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tools/setup_gate.sh b/tools/setup_gate.sh index a7b635e54..8a3243d50 100755 --- a/tools/setup_gate.sh +++ b/tools/setup_gate.sh @@ -42,6 +42,11 @@ EOF # NOTE(Jeffrey4l): use different a docker namespace name in case it pull image from hub.docker.io when deplying sed -i 's|^#namespace.*|namespace = lokolla|' /etc/kolla/kolla-build.conf + if [[ -n "${PACK_REGISTRY}" ]] && [[ $ACTION == "build" ]]; then + sed -i 's|^#registry.*|registry = 127.0.0.1:4000|' /etc/kolla/kolla-build.conf + sed -i 's|^#push.*|push = true|' /etc/kolla/kolla-build.conf + fi + if [[ "${DISTRO}" == "Debian" ]]; then # Infra does not sign their mirrors so we ignore gpg signing in the gate echo "RUN echo 'APT::Get::AllowUnauthenticated \"true\";' > /etc/apt/apt.conf" | sudo tee -a /etc/kolla/header |
