Skip to content

Commit

Permalink
github: update actions to ubuntu 24.04
Browse files Browse the repository at this point in the history
  • Loading branch information
sni committed Feb 3, 2025
1 parent c0549bd commit 828892d
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 5 deletions.
12 changes: 9 additions & 3 deletions .ci/prepare_machine.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,13 @@ set -ex

export DEBIAN_FRONTEND="noninteractive"
apt-get -y update

apt-get -y update
apt-get -y install apt-transport-https curl
sh -c "echo 'deb [signed-by=/etc/apt/trusted.gpg.d/naemon.asc] http://download.opensuse.org/repositories/home:/naemon:/daily/xUbuntu_$(lsb_release -rs)/ ./' >> /etc/apt/sources.list"
curl -s -o /etc/apt/trusted.gpg.d/naemon.asc "https://build.opensuse.org/projects/home:naemon/signing_keys/download?kind=gpg"
apt-get -y update

apt-get -y install \
debhelper \
lsb-release \
Expand Down Expand Up @@ -68,9 +75,6 @@ apt-get -y install \
chromium-browser \
npm \

echo "deb http://labs.consol.de/repo/stable/ubuntu $(lsb_release -cs) main" >> /etc/apt/sources.list
wget -q "http://labs.consol.de/repo/stable/RPM-GPG-KEY" -O - | apt-key add -
apt-get -y update
apt-get -y install naemon-core naemon-livestatus
chsh -s /bin/bash naemon
! grep docker /etc/group >/dev/null || gpasswd -a naemon docker
Expand All @@ -91,6 +95,8 @@ mysql -e "create database IF NOT EXISTS test;" -uroot -proot

chown -R naemon: .

ln -sfn /usr/bin/chromium-browser /usr/bin/chromium

# free some disk space again
apt-get clean
df -h
2 changes: 1 addition & 1 deletion .github/workflows/citest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ env:

jobs:
citest:
runs-on: ubuntu-20.04
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
- name: perl -V
Expand Down
2 changes: 1 addition & 1 deletion t/scenarios/citest/citest/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM ubuntu:20.04
FROM ubuntu:24.04

RUN apt-get update; \
DEBIAN_FRONTEND=noninteractive \
Expand Down

0 comments on commit 828892d

Please sign in to comment.