zuul-jobs/test-playbooks/ensure-skopeo/main.yaml
Radosław Piliszek bae449c42c Reenable buildset-registry jobs
As a followup to I4d05f9b187f9e40c3dcb2597e08c5bb50c261b17

We switch buildset-registry jobs to debian bookworm which has new enough
golang to build the latest skopeo version. Latest skopeo is used in
order to get api version negotiation behavior which is necessary for
talking to modern docker (version 25 or newer).

Change-Id: Ie673ef6724b0a40e3cfb2ba83e90d566e1f1837c
Co-Authored-By: Clark Boylan <cboylan@sapwetik.org>
2024-03-21 21:09:01 +00:00

32 lines
837 B
YAML

- hosts: all
roles:
- ensure-skopeo
- hosts: all
tasks:
- name: Additionally test from source on Ubuntu 22.04
when: ansible_distribution_release == 'jammy'
include_role:
name: ensure-skopeo
vars:
ensure_skopeo_install_from_upstream: true
# Skopeo 1.14.0 and newer require golang 1.19 but only 1.18 is
# available on jammy.
ensure_skopeo_install_from_upstream_version: 'v1.13.3'
- name: Additionally test from source on Debian Bookworm
when: ansible_distribution_release == 'bookworm'
include_role:
name: ensure-skopeo
vars:
ensure_skopeo_install_from_upstream: true
- name: Exercise skopeo
command: /usr/bin/skopeo -v
register: output
- name: Debug output
debug:
msg: '{{ output.stdout }}'