Commit 8946da09 authored by Guilhem Bonnefille's avatar Guilhem Bonnefille
Browse files

fix: log all configured registries

When snapshot and release registries are different and a single one is logged as configured,
one can think it has misconfigured something.
parent 4cdb0e96
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -783,7 +783,12 @@ stages:
      merge_json "$BUILDTOOL_HOME/skopeo/.docker/src-config.json" "$BUILDTOOL_HOME/skopeo/.docker/release-only.json" > "$BUILDTOOL_HOME/skopeo/.docker/dest-config.json"
    fi

    log_info "Docker authentication configured for \\e[33;1m${docker_snapshot_registry_host}\\e[0m"
    if [ "$docker_snapshot_registry_host" = "$docker_release_registry_host" ]
    then
      log_info "Docker authentication configured for \\e[33;1m${docker_snapshot_registry_host}\\e[0m ${docker_mirror_registry_host+and \\e[33;1m${docker_mirror_registry_host}\\e[0m}"
    else
      log_info "Docker authentication configured for \\e[33;1m${docker_snapshot_registry_host}\\e[0m and \\e[33;1m${docker_release_registry_host}\\e[0m ${docker_mirror_registry_host+and \\e[33;1m${docker_mirror_registry_host}\\e[0m}"
    fi
  }

  # autodetects whether there is an hadolint config file