23826e05a6
Skopeo has problems with ipv6 address literals just like docker as they use the same underlying checks for url validity. However, we think we can fix that by using a port forward from the executor to the buildset registry so that skopeo can connect via ipv4 Go back to aliases the registries on test nodes via /etc/hosts. Change-Id: I5f9316ffe84de06cb2fb2b65a7e1c31d9f8b0e35 Co-Authored-By: James E. Blair <jeblair@redhat.com>
76 lines
1.8 KiB
ReStructuredText
76 lines
1.8 KiB
ReStructuredText
Push artifacts to the intermediate registry
|
|
|
|
This role will push any images built by
|
|
:zuul:role:`build-docker-image` into an intermediate registry.
|
|
|
|
Run this in a trusted post-playbook at the end of a job after the
|
|
image build.
|
|
|
|
This requires the :zuul:role:`run-buildset-registry` role already
|
|
applied. It also requires an externally managed "intermediate"
|
|
registry operating for the use of Zuul, and it requires "skopeo" and
|
|
"socat" to be installed on the Zuul executors.
|
|
|
|
**Role Variables**
|
|
|
|
.. zuul:rolevar:: buildset_registry
|
|
|
|
Information about the registry, as returned by
|
|
:zuul:role:`run-buildset-registry`.
|
|
|
|
.. zuul:rolevar:: host
|
|
|
|
The host (IP address) of the registry.
|
|
|
|
.. zuul:rolevar:: port
|
|
|
|
The port on which the registry is listening.
|
|
|
|
.. zuul:rolevar:: username
|
|
|
|
The username used to access the registry via HTTP basic auth.
|
|
|
|
.. zuul:rolevar:: password
|
|
|
|
The password used to access the registry via HTTP basic auth.
|
|
|
|
.. zuul:rolevar:: cert
|
|
|
|
The (self-signed) certificate used by the registry.
|
|
|
|
.. zuul:rolevar:: intermediate_registry
|
|
|
|
Information about the registry. This is expected to be provided as
|
|
a secret.
|
|
|
|
.. zuul:rolevar:: host
|
|
|
|
The host (IP address) of the registry.
|
|
|
|
.. zuul:rolevar:: port
|
|
|
|
The port on which the registry is listening.
|
|
|
|
.. zuul:rolevar:: username
|
|
|
|
The username used to access the registry via HTTP basic auth.
|
|
|
|
.. zuul:rolevar:: password
|
|
|
|
The password used to access the registry via HTTP basic auth.
|
|
|
|
.. zuul:rolevar:: docker_images
|
|
:type: list
|
|
|
|
A list of images built. Each item in the list should have:
|
|
|
|
.. zuul:rolevar:: repository
|
|
|
|
The name of the target repository for the image.
|
|
|
|
.. zuul:rolevar:: tags
|
|
:type: list
|
|
:default: ['latest']
|
|
|
|
A list of tags to be added to the image.
|