mirror of
https://github.com/ansible-collections/community.docker.git
synced 2026-04-12 21:34:54 +00:00
[PR #1113/1ba34b9b backport][stable-3] CI: Add Debian 13 Trixie (#1114)
* CI: Add Debian 13 Trixie (#1113)
* Add Debian 13 Trixie to CI.
* I don't think this is needed any longer.
* Debian: adjust way GPG signature is installed for Docker's software repo.
(cherry picked from commit 1ba34b9b7c)
* Skip Docker Compose v1 on Debian Trixie.
---------
Co-authored-by: Felix Fontein <felix@fontein.de>
This commit is contained in:
parent
3f7ed36ed0
commit
6cc33e515c
@ -183,10 +183,12 @@ stages:
|
|||||||
parameters:
|
parameters:
|
||||||
testFormat: 2.19/linux-community/{0}
|
testFormat: 2.19/linux-community/{0}
|
||||||
targets:
|
targets:
|
||||||
- name: Debian Bullseye
|
- name: Debian 11 Bullseye
|
||||||
test: debian-bullseye/3.9
|
test: debian-bullseye/3.9
|
||||||
- name: Debian Bookworm
|
- name: Debian 12 Bookworm
|
||||||
test: debian-bookworm/3.11
|
test: debian-bookworm/3.11
|
||||||
|
- name: Debian 13 Trixie
|
||||||
|
test: debian-13-trixie/3.13
|
||||||
- name: ArchLinux
|
- name: ArchLinux
|
||||||
test: archlinux/3.13
|
test: archlinux/3.13
|
||||||
groups:
|
groups:
|
||||||
|
|||||||
@ -14,6 +14,26 @@
|
|||||||
update_cache: true
|
update_cache: true
|
||||||
notify: cleanup docker
|
notify: cleanup docker
|
||||||
|
|
||||||
|
- when:
|
||||||
|
- (ansible_facts.distribution == "Ubuntu" and (ansible_facts.distribution_major_version | int) >= 22) or
|
||||||
|
(ansible_facts.distribution == "Debian" and (ansible_facts.distribution_major_version | int) >= 12)
|
||||||
|
name: Add Docker repo on Ubuntu 22+ or Debian 12+
|
||||||
|
block:
|
||||||
|
- name: Add gpg key
|
||||||
|
get_url:
|
||||||
|
url: "https://download.docker.com/linux/{{ ansible_distribution | lower }}/gpg"
|
||||||
|
dest: /etc/apt/keyrings/docker.asc
|
||||||
|
|
||||||
|
- name: Add Docker repo
|
||||||
|
apt_repository:
|
||||||
|
repo: deb [arch={{ 'arm64' if ansible_architecture == 'aarch64' else 'amd64' }} signed-by=/etc/apt/keyrings/docker.asc] https://download.docker.com/linux/{{ ansible_distribution | lower }} {{ ansible_distribution_release }} stable
|
||||||
|
state: present
|
||||||
|
|
||||||
|
- when:
|
||||||
|
- (ansible_facts.distribution == "Ubuntu" and (ansible_facts.distribution_major_version | int) < 22) or
|
||||||
|
(ansible_facts.distribution == "Debian" and (ansible_facts.distribution_major_version | int) < 12)
|
||||||
|
name: Add Docker repo on Ubuntu 20 or before, or Debian 11 or before
|
||||||
|
block:
|
||||||
- name: Add gpg key
|
- name: Add gpg key
|
||||||
shell: curl -fsSL https://download.docker.com/linux/{{ ansible_distribution | lower }}/gpg >key && apt-key add key
|
shell: curl -fsSL https://download.docker.com/linux/{{ ansible_distribution | lower }}/gpg >key && apt-key add key
|
||||||
|
|
||||||
|
|||||||
@ -7,4 +7,3 @@ docker_prereq_packages:
|
|||||||
- apt-transport-https
|
- apt-transport-https
|
||||||
- ca-certificates
|
- ca-certificates
|
||||||
- curl
|
- curl
|
||||||
- software-properties-common
|
|
||||||
|
|||||||
@ -0,0 +1,6 @@
|
|||||||
|
---
|
||||||
|
# Copyright (c) Ansible Project
|
||||||
|
# GNU General Public License v3.0+ (see LICENSES/GPL-3.0-or-later.txt or https://www.gnu.org/licenses/gpl-3.0.txt)
|
||||||
|
# SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
|
|
||||||
|
skip_docker_compose: true
|
||||||
Loading…
Reference in New Issue
Block a user