diff --git a/.gitea/workflows/build.yaml b/.gitea/workflows/build.yaml index 89af5bc..cd1d4b9 100644 --- a/.gitea/workflows/build.yaml +++ b/.gitea/workflows/build.yaml @@ -37,6 +37,12 @@ jobs: xdu/ubuntu:latest xdu/ubuntu:25.10 + - name: ubuntu-24.04 + context: . + dockerfile: ubuntu-24.04.dockerfile + image: | + xdu/ubuntu:24.04 + - name: ffmpeg context: . dockerfile: ffmpeg-debian.dockerfile diff --git a/ubuntu-24.04.dockerfile b/ubuntu-24.04.dockerfile new file mode 100644 index 0000000..1a248f9 --- /dev/null +++ b/ubuntu-24.04.dockerfile @@ -0,0 +1,11 @@ +FROM docker.xd.xkm.be/ubuntu:24.04 + +ARG DEB_MIRRORS=linux.xidian.edu.cn/mirrors + +RUN sed -E "s,(archive|security)\.ubuntu\.com,${DEB_MIRRORS}," /etc/apt/sources.list.d/ubuntu.sources -i && \ + apt update && \ + apt install -y apt-transport-https ca-certificates && \ + sed "s|http:|https:|" /etc/apt/sources.list.d/ubuntu.sources -i && \ + apt update && \ + apt upgrade -y && \ + rm -rf /var/lib/apt/lists/* diff --git a/ubuntu.dockerfile b/ubuntu.dockerfile index b5cd23a..54d63dd 100644 --- a/ubuntu.dockerfile +++ b/ubuntu.dockerfile @@ -2,7 +2,7 @@ FROM docker.xd.xkm.be/ubuntu:25.10 ARG DEB_MIRRORS=linux.xidian.edu.cn/mirrors -RUN sed "s|archive.ubuntu.com|${DEB_MIRRORS}|" /etc/apt/sources.list.d/ubuntu.sources -i && \ +RUN sed -E "s,(archive|security)\.ubuntu\.com,${DEB_MIRRORS}," /etc/apt/sources.list.d/ubuntu.sources -i && \ apt update && \ apt install -y apt-transport-https ca-certificates && \ sed "s|http:|https:|" /etc/apt/sources.list.d/ubuntu.sources -i && \