mirror of
https://github.com/bunkerity/bunkerweb
synced 2026-05-24 09:28:37 +00:00
chore: Add support for Ubuntu 24.04 (Noble) in Linux tests and add it to the CHANGELOG.md
This commit is contained in:
parent
2a061df417
commit
5b4602f3c5
3 changed files with 14 additions and 4 deletions
9
.github/workflows/staging-tests.yml
vendored
9
.github/workflows/staging-tests.yml
vendored
|
|
@ -75,6 +75,9 @@ jobs:
|
|||
- name: Pull BW linux ubuntu test image
|
||||
if: inputs.TYPE == 'linux'
|
||||
run: docker pull ghcr.io/bunkerity/ubuntu-tests:testing && docker tag ghcr.io/bunkerity/ubuntu-tests:testing local/ubuntu:latest
|
||||
- name: Pull BW linux ubuntu noble test image
|
||||
if: inputs.TYPE == 'linux'
|
||||
run: docker pull ghcr.io/bunkerity/ubuntu-noble-tests:testing && docker tag ghcr.io/bunkerity/ubuntu-noble-tests:testing local/ubuntu-noble:latest
|
||||
- name: Pull BW linux debian test image
|
||||
if: inputs.TYPE == 'linux'
|
||||
run: docker pull ghcr.io/bunkerity/debian-tests:testing && docker tag ghcr.io/bunkerity/debian-tests:testing local/debian:latest
|
||||
|
|
@ -121,6 +124,12 @@ jobs:
|
|||
env:
|
||||
TEST_DOMAINS: ${{ secrets.TEST_DOMAINS_LINUX }}
|
||||
ROOT_DOMAIN: ${{ secrets.ROOT_DOMAIN }}
|
||||
- name: Run Linux ubuntu noble tests
|
||||
if: inputs.TYPE == 'linux'
|
||||
run: export $(echo "$TEST_DOMAINS" | xargs) && ./tests/main.py "linux" "ubuntu-noble"
|
||||
env:
|
||||
TEST_DOMAINS: ${{ secrets.TEST_DOMAINS_LINUX }}
|
||||
ROOT_DOMAIN: ${{ secrets.ROOT_DOMAIN }}
|
||||
- name: Run Linux debian tests
|
||||
if: inputs.TYPE == 'linux'
|
||||
run: export $(echo "$TEST_DOMAINS" | xargs) && ./tests/main.py "linux" "debian"
|
||||
|
|
|
|||
|
|
@ -2,6 +2,7 @@
|
|||
|
||||
## v1.5.7 - ????/??/??
|
||||
|
||||
- [LINUX] Support Ubuntu 24.04 (Noble)
|
||||
- [BUGFIX] Fix rare error when the cache is not properly initialized and jobs are executed
|
||||
- [BUGFIX] Fix bug when downloading new mmdb files
|
||||
- [BUGFIX] Remove potential false positives with ModSecurity on the jobs page of the web UI
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@ class LinuxTest(Test):
|
|||
def __init__(self, name, timeout, tests, distro, domains={}):
|
||||
super().__init__(name, "linux", timeout, tests, delay=20)
|
||||
self._domains = domains
|
||||
if distro not in ("ubuntu", "debian", "fedora", "centos") and not distro.startswith("rhel"):
|
||||
if distro not in ("ubuntu", "ubuntu-noble", "debian", "fedora", "centos") and not distro.startswith("rhel"):
|
||||
raise Exception(f"unknown distro {distro}")
|
||||
self.__distro = distro
|
||||
|
||||
|
|
@ -24,7 +24,7 @@ class LinuxTest(Test):
|
|||
proc = run(cmd, shell=True)
|
||||
if proc.returncode != 0:
|
||||
raise Exception("docker run failed (linux stack)")
|
||||
if distro in ("ubuntu", "debian"):
|
||||
if distro in ("ubuntu", "ubuntu-noble", "debian"):
|
||||
cmd = "echo force-bad-version >> /etc/dpkg/dpkg.cfg ; apt install -y /opt/\\$(ls /opt | grep deb)"
|
||||
elif distro in ("centos", "fedora") or distro.startswith("rhel"):
|
||||
cmd = "dnf install -y /opt/\\$(ls /opt | grep rpm)"
|
||||
|
|
@ -34,12 +34,12 @@ class LinuxTest(Test):
|
|||
proc = LinuxTest.docker_exec(distro, "systemctl start bunkerweb")
|
||||
if proc.returncode != 0:
|
||||
raise Exception("docker exec systemctl start failed (linux stack)")
|
||||
if distro in ("ubuntu", "debian"):
|
||||
if distro in ("ubuntu", "ubuntu-noble", "debian"):
|
||||
LinuxTest.docker_exec(
|
||||
distro,
|
||||
"DEBIAN_FRONTEND=noninteractive apt-get install -y php-fpm unzip",
|
||||
)
|
||||
if distro == "ubuntu":
|
||||
if distro in ("ubuntu", "ubuntu-noble"):
|
||||
LinuxTest.docker_cp(
|
||||
distro,
|
||||
"./tests/www-deb.conf",
|
||||
|
|
|
|||
Loading…
Reference in a new issue