Skip to content

Commit

Permalink
CI fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
bmhughes committed Jul 9, 2024
1 parent 7968926 commit 249354b
Show file tree
Hide file tree
Showing 7 changed files with 21 additions and 21 deletions.
15 changes: 9 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,24 +24,23 @@ jobs:
matrix:
os:
- "almalinux-8"
- "centos-7"
- "centos-stream-8"
- "debian-10"
- "debian-11"
- "debian-12"
- "rockylinux-8"
- "ubuntu-1804"
- "rockylinux-9"
- "ubuntu-2004"
- "ubuntu-2204"
suite:
- "installation-script-main"
- "installation-script-test"
- "installation-package"
- "installation-tarball"
- "install-and-stop"
exclude:
- os: debian-9
suite: installation-script-main
- os: debian-11
suite: installation-script-test
- os: debian-12
suite: installation-script-test
- os: almalinux-8
suite: installation-script-main
- os: almalinux-8
Expand All @@ -50,6 +49,10 @@ jobs:
suite: installation-script-main
- os: rockylinux-8
suite: installation-script-test
- os: rockylinux-9
suite: installation-script-main
- os: rockylinux-9
suite: installation-script-test
fail-fast: false

steps:
Expand Down
5 changes: 0 additions & 5 deletions kitchen.dokken.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,6 @@ platforms:
image: dokken/amazonlinux-2023
pid_one_command: /usr/lib/systemd/systemd

- name: centos-stream-8
driver:
image: dokken/centos-stream-8
pid_one_command: /usr/lib/systemd/systemd

- name: centos-stream-9
driver:
image: dokken/centos-stream-9
Expand Down
1 change: 0 additions & 1 deletion kitchen.global.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ platforms:
- name: almalinux-8
- name: almalinux-9
- name: amazonlinux-2023
- name: centos-stream-8
- name: centos-stream-9
- name: debian-11
- name: debian-12
Expand Down
1 change: 0 additions & 1 deletion kitchen.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ platforms:
- name: almalinux-8
- name: amazonlinux-2
- name: centos-7
- name: centos-stream-8
- name: debian-10
# docker post-install script misbehaves on Debian 10 if systemd isn't completely started
# https://forums.docker.com/t/failed-to-load-listeners-no-sockets-found-via-socket-activation-make-sure-the-service-was-started-by-systemd/62505/11
Expand Down
6 changes: 6 additions & 0 deletions resources/installation_package.rb
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,10 @@ def bullseye?
false
end

def bookworm?
return true if platform?('debian') && node['platform_version'].to_i == 11
false
end
def bionic?
return true if platform?('ubuntu') && node['platform_version'] == '18.04'
false
Expand All @@ -76,6 +80,8 @@ def version_string(v)
'buster'
elsif bullseye? # deb 11
'bullseye'
elsif bookworm? # deb 12
'bookworm'
elsif bionic? # ubuntu 18.04
'bionic'
elsif focal? # ubuntu 20.04
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
# Debian 9 does not include 23.0
if os.name == 'debian' && os.release.to_i == 9
if os.name == 'debian' && os.release.to_i == 11
describe command('/usr/bin/docker --version') do
its(:exit_status) { should eq 0 }
its(:stdout) { should match(/19\.03\./) }
its(:stdout) { should match(/27\.0\./) }
end
elsif os.name == 'amazon' && %w(2 2023).include?(os.release)
describe command('/usr/bin/docker --version') do
Expand All @@ -12,7 +11,7 @@
else
describe command('/usr/bin/docker --version') do
its(:exit_status) { should eq 0 }
its(:stdout) { should match(/24\.0\./) }
its(:stdout) { should match(/26\.1\./) }
end
end

Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
# Debian 9 does not include 20.10
if os.name == 'debian' && os.release.to_i == 9
if os.name == 'debian' && os.release.to_i == 11
describe command('/usr/bin/docker --version') do
its(:exit_status) { should eq 0 }
its(:stdout) { should match(/19\.03\./) }
its(:stdout) { should match(/27\.0\./) }
end
else
describe command('/usr/bin/docker --version') do
its(:exit_status) { should eq 0 }
its(:stdout) { should match(/24\.0\./) }
its(:stdout) { should match(/26\.1\./) }
end
end

0 comments on commit 249354b

Please sign in to comment.