Skip to content

Commit

Permalink
Switch to Ubuntu 24.04 image for GitHub Actions hosted runners
Browse files Browse the repository at this point in the history
Signed-off-by: Norman Ziegner <n.ziegner@hzdr.de>
  • Loading branch information
Normo committed May 21, 2024
1 parent e4ab5b8 commit 364db72
Show file tree
Hide file tree
Showing 8 changed files with 12 additions and 50 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/keepalived.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
# SPDX-License-Identifier: Apache-2.0

---
name: "hifis.keepalived"
name: "hifis.toolkit.keepalived"

on:
pull_request:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/labeler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ on:

jobs:
labeler:
runs-on: "ubuntu-22.04"
runs-on: "ubuntu-24.04"
permissions:
contents: "read"
pull-requests: "write"
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:

ansible-lint:
name: "Ansible Lint"
runs-on: "ubuntu-22.04"
runs-on: "ubuntu-24.04"
steps:
- name: "Check out the codebase."
uses: "actions/checkout@v4"
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:

release:
name: "Release new version on Ansible Galaxy"
runs-on: "ubuntu-22.04"
runs-on: "ubuntu-24.04"
steps:
- name: "checkout"
uses: "actions/checkout@v4"
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/reuse-compliance.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ on:
jobs:
reuse-lint:
name: "REUSE compliance check"
runs-on: "ubuntu-22.04"
runs-on: "ubuntu-24.04"
steps:
- name: "Check out the codebase."
uses: "actions/checkout@v4"
Expand Down
17 changes: 2 additions & 15 deletions .github/workflows/ssh_keys.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
# SPDX-License-Identifier: Apache-2.0

---
name: "hifis.ssh_keys"
name: "hifis.toolkit.ssh_keys"

on:
pull_request:
Expand Down Expand Up @@ -32,7 +32,7 @@ jobs:

test:
name: "Run Molecule tests."
runs-on: "ubuntu-22.04"
runs-on: "ubuntu-24.04"
env:
PY_COLORS: 1
ANSIBLE_FORCE_COLOR: 1
Expand Down Expand Up @@ -65,19 +65,6 @@ jobs:
ln -s /home/runner/work/ansible-collection-toolkit/ansible-collection-toolkit/ansible_collections/hifis/toolkit/roles \
/home/runner/.ansible/roles
- name: "Install modern podman"
run: |
sudo mkdir -p /etc/apt/keyrings
curl -fsSL https://download.opensuse.org/repositories/devel:kubic:libcontainers:unstable/xUbuntu_$(lsb_release -rs)/Release.key \
| gpg --dearmor \
| sudo tee /etc/apt/keyrings/devel_kubic_libcontainers_unstable.gpg > /dev/null
echo \
"deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/devel_kubic_libcontainers_unstable.gpg]\
https://download.opensuse.org/repositories/devel:kubic:libcontainers:unstable/xUbuntu_$(lsb_release -rs)/ /" \
| sudo tee /etc/apt/sources.list.d/devel:kubic:libcontainers:unstable.list > /dev/null
sudo apt-get update -qq
sudo apt-get -qq -y install podman
- name: "Run Molecule tests."
run: "pipenv run molecule test -s ssh_keys"
env:
Expand Down
17 changes: 2 additions & 15 deletions .github/workflows/unattended_upgrades.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
# SPDX-License-Identifier: Apache-2.0

---
name: "hifis.unattended_upgrades"
name: "hifis.toolkit.unattended_upgrades"

on:
pull_request:
Expand Down Expand Up @@ -32,7 +32,7 @@ jobs:

test:
name: "Run Molecule tests."
runs-on: "ubuntu-22.04"
runs-on: "ubuntu-24.04"
env:
PY_COLORS: 1
ANSIBLE_FORCE_COLOR: 1
Expand All @@ -55,19 +55,6 @@ jobs:
- name: "Prepare the job environment."
uses: "./ansible_collections/hifis/toolkit/.github/workflows/prepare-action"

- name: "Install modern podman"
run: |
sudo mkdir -p /etc/apt/keyrings
curl -fsSL https://download.opensuse.org/repositories/devel:kubic:libcontainers:unstable/xUbuntu_$(lsb_release -rs)/Release.key \
| gpg --dearmor \
| sudo tee /etc/apt/keyrings/devel_kubic_libcontainers_unstable.gpg > /dev/null
echo \
"deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/devel_kubic_libcontainers_unstable.gpg]\
https://download.opensuse.org/repositories/devel:kubic:libcontainers:unstable/xUbuntu_$(lsb_release -rs)/ /" \
| sudo tee /etc/apt/sources.list.d/devel:kubic:libcontainers:unstable.list > /dev/null
sudo apt-get update -qq
sudo apt-get -qq -y install podman
- name: "Run Molecule tests."
run: "pipenv run molecule test -s unattended_upgrades"
env:
Expand Down
18 changes: 3 additions & 15 deletions .github/workflows/zammad.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
# SPDX-License-Identifier: Apache-2.0

---
name: "hifis.zammad"
name: "hifis.toolkit.zammad"

on:
pull_request:
paths:
Expand All @@ -31,7 +32,7 @@ jobs:

test:
name: "Run Molecule tests."
runs-on: "ubuntu-22.04"
runs-on: "ubuntu-24.04"
env:
PY_COLORS: 1
ANSIBLE_FORCE_COLOR: 1
Expand All @@ -58,19 +59,6 @@ jobs:
ln -s /home/runner/work/ansible-collection-toolkit/ansible-collection-toolkit/ansible_collections/hifis/toolkit/roles \
/home/runner/.ansible/roles
- name: "Install modern podman"
run: |
sudo mkdir -p /etc/apt/keyrings
curl -fsSL https://download.opensuse.org/repositories/devel:kubic:libcontainers:unstable/xUbuntu_$(lsb_release -rs)/Release.key \
| gpg --dearmor \
| sudo tee /etc/apt/keyrings/devel_kubic_libcontainers_unstable.gpg > /dev/null
echo \
"deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/devel_kubic_libcontainers_unstable.gpg]\
https://download.opensuse.org/repositories/devel:kubic:libcontainers:unstable/xUbuntu_$(lsb_release -rs)/ /" \
| sudo tee /etc/apt/sources.list.d/devel:kubic:libcontainers:unstable.list > /dev/null
sudo apt-get update -qq
sudo apt-get -qq -y install podman
- name: "Run Molecule tests."
run: "XDG_RUNTIME_DIR=/run/user/$UID pipenv run molecule test -s zammad"
env:
Expand Down

0 comments on commit 364db72

Please sign in to comment.