bae449c42c
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>
50 lines
1.1 KiB
YAML
50 lines
1.1 KiB
YAML
- name: Install skopeo from packages
|
|
when: not ensure_skopeo_install_from_upstream
|
|
package:
|
|
name:
|
|
- skopeo
|
|
- uidmap
|
|
state: present
|
|
become: yes
|
|
|
|
- name: Install skopeo from upstream
|
|
when: ensure_skopeo_install_from_upstream
|
|
block:
|
|
|
|
- name: Install dependencies
|
|
become: yes
|
|
package:
|
|
name:
|
|
- libgpgme-dev
|
|
- libassuan-dev
|
|
- libbtrfs-dev
|
|
- libdevmapper-dev
|
|
- pkg-config
|
|
- build-essential
|
|
- golang
|
|
state: present
|
|
|
|
- name: Clone upstream source
|
|
git:
|
|
repo: https://github.com/containers/skopeo
|
|
dest: '{{ ansible_user_dir }}/skopeo'
|
|
version: '{{ ensure_skopeo_install_from_upstream_version }}'
|
|
|
|
- name: Build skopeo
|
|
command: 'make'
|
|
args:
|
|
chdir: '{{ ansible_user_dir }}/skopeo'
|
|
environment:
|
|
DISABLE_DOCS: 1
|
|
|
|
- name: Install binary
|
|
become: yes
|
|
command: 'make install'
|
|
args:
|
|
chdir: '{{ ansible_user_dir }}/skopeo'
|
|
environment:
|
|
DISABLE_DOCS: 1
|
|
|
|
- name: Test binary
|
|
command: '/usr/local/bin/skopeo --version'
|