zuul/playbooks/image/test-image.yaml
James E. Blair dff9bba490 Add container image sanity checks
Since we're building skopeo ourselves in the container image, and
we don't have any functional testing of that, perform a sanity check.

Change-Id: I362e97d1120f3ce6c6be85ccf6948ced763b6cc1
2024-03-22 06:32:56 -07:00

12 lines
474 B
YAML

# Sanity checks that our container image is built as expected
- hosts: all
tasks:
- name: Test skopeo inside the executor bwrap
command: docker run --rm -i --privileged quay.io/zuul-ci/zuul-executor:latest zuul-bwrap /tmp skopeo copy docker://quay.io/zuul-ci/zuul:latest oci:test
register: skopeo_output
- name: Verify that skopeo ran correctly
assert:
that:
- "'Writing manifest to image destination' in skopeo_output.stdout"