Files
zuul-jobs/test-playbooks/registry/vars/previous-build.yaml
Clark Boylan 5dcc397840 Update registry tests to better cover speculative image builds
The docker toolchain is a bit of a walled garden and speculative image
builds work great by default as long as docker.io is your image
registry. As soon as you start trying to host images elsewhere it
becomes a lot more complicated to use speculatively built images during
docker image builds.

Update our existing registry role test jobs to use images hosted
somewhere other than docker.io to force us onto the less happy code
path, then verify that we are able to build images from speculative
states using docker. This should give us decent coverage that everything
works as expected.

Change-Id: I4801f98a0ef1aab01b4bc3b6e6576800efacbac4
2025-08-28 15:34:11 -07:00

15 lines
652 B
YAML

# This simulates a build from a previous change which appears in this
# buildset via provides/requires. This build should be copied from
# the intermediate registry to the buildset registry.
previous_build_repository: quay.io/opendevorg/imagedoesnotexist
previous_build_uuid: 48a84fe22a744cb5b0310f396358d912
previous_build_zuul:
artifacts:
- url: "docker://{{ intermediate_registry.host }}:{{ intermediate_registry.port }}/{{ previous_build_repository }}:{{ previous_build_uuid }}_latest"
metadata:
repository: "{{ previous_build_repository }}"
tag: latest
type: container_image
executor: "{{ zuul.executor }}"