mirror of
https://github.com/ansible-collections/community.docker.git
synced 2026-03-15 03:48:09 +00:00
CI: fix GHA by downgrading Docker (#1244)
* Show more information on Docker. * Downgrade Docker on GHA.
This commit is contained in:
parent
67448fd5bb
commit
241ba443ac
23
.github/workflows/nox.yml
vendored
23
.github/workflows/nox.yml
vendored
@ -31,5 +31,28 @@ jobs:
|
||||
upload-codecov-push: false
|
||||
upload-codecov-schedule: true
|
||||
max-ansible-core: "2.17"
|
||||
# For some reason GitHub decided to bump Docker on the ubuntu-24.04 image,
|
||||
# which is not compatible with podman and various other things.
|
||||
pre-test-cmd-integration: |-
|
||||
# See https://docs.docker.com/engine/install/ubuntu/.
|
||||
|
||||
# Add Docker's official GPG key:
|
||||
sudo apt update
|
||||
sudo apt install ca-certificates curl
|
||||
sudo install -m 0755 -d /etc/apt/keyrings
|
||||
sudo curl -fsSL https://download.docker.com/linux/ubuntu/gpg -o /etc/apt/keyrings/docker.asc
|
||||
sudo chmod a+r /etc/apt/keyrings/docker.asc
|
||||
|
||||
# Add the repository to Apt sources:
|
||||
sudo tee /etc/apt/sources.list.d/docker.sources <<EOF
|
||||
Types: deb
|
||||
URIs: https://download.docker.com/linux/ubuntu
|
||||
Suites: $(. /etc/os-release && echo "${UBUNTU_CODENAME:-$VERSION_CODENAME}")
|
||||
Components: stable
|
||||
Signed-By: /etc/apt/keyrings/docker.asc
|
||||
EOF
|
||||
|
||||
sudo apt update
|
||||
sudo apt-get install -y --allow-downgrades docker-ce-cli=5:28.0.4-1~ubuntu.24.04~noble docker-ce=5:28.0.4-1~ubuntu.24.04~noble
|
||||
secrets:
|
||||
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
|
||||
|
||||
@ -70,6 +70,26 @@
|
||||
state: touch
|
||||
when: docker_skip_cleanup
|
||||
|
||||
- name: Retrieve more information (0/4)
|
||||
ansible.builtin.command:
|
||||
cmd: sh -c export
|
||||
|
||||
- name: Retrieve more information (1/4)
|
||||
ansible.builtin.command:
|
||||
cmd: docker version
|
||||
|
||||
- name: Retrieve more information (2/4)
|
||||
ansible.builtin.command:
|
||||
cmd: docker info
|
||||
|
||||
- name: Retrieve more information (3/4)
|
||||
ansible.builtin.command:
|
||||
cmd: docker context ls
|
||||
|
||||
- name: Retrieve more information (4/4)
|
||||
ansible.builtin.command:
|
||||
cmd: which docker
|
||||
|
||||
# Detect docker API version
|
||||
- name: Check Docker API version
|
||||
ansible.builtin.command: "docker version -f {% raw %}'{{(index .Server.Components 0).Details.ApiVersion}}'{% endraw %}"
|
||||
|
||||
@ -63,4 +63,8 @@
|
||||
{{ docker_cli_plugins_stdout.stdout | from_json | selectattr('Name', 'eq', 'compose') | map(attribute='Version') | first | default('0.0') | regex_replace('^v', '') }}
|
||||
|
||||
- ansible.builtin.debug:
|
||||
msg: "Has Docker compoes plugin: {{ docker_has_compose }}; Docker compose plugin version: {{ docker_compose_version }}"
|
||||
msg: "Has Docker compose plugin: {{ docker_has_compose }}; Docker compose plugin version: {{ docker_compose_version }}"
|
||||
|
||||
- name: Retrieve more information
|
||||
ansible.builtin.command:
|
||||
cmd: docker version
|
||||
|
||||
Loading…
Reference in New Issue
Block a user