Unverified Commit 2a5cb410 authored by Pierre-Louis Bonicoli's avatar Pierre-Louis Bonicoli 🏗
Browse files

Update Debian releases

parent afff0ce3
ARG DEBIAN_RELEASE=buster
ARG DEBIAN_RELEASE=bullseye
FROM docker.io/debian:${DEBIAN_RELEASE}
# Workaround https://github.com/moby/moby/issues/6345
RUN grep -q "VERSION_CODENAME=stretch" /etc/os-release && mv /usr/bin/chfn /usr/bin/chfn.backup && ln -s /bin/true /usr/bin/chfn ||:
RUN apt-get update && \
apt-get install -y python3 sudo bash ca-certificates iproute2 python3-apt systemd-sysv && \
rm -rf /var/lib/apt/lists/* && \
......@@ -11,5 +8,3 @@ RUN apt-get update && \
# Cache.update method from Python APT module expects existence of this
# directory
# Official Debian and Ubuntu images automatically run apt-get clean, so explicit invocation is not required.
RUN grep -q "VERSION_CODENAME=stretch" /etc/os-release && mv /usr/bin/chfn.backup /usr/bin/chfn ||:
---
- job:
name: kaniko-build-image-debian-systemd-stretch
name: kaniko-build-image-debian-systemd-bullseye
parent: kaniko-build-quay-pilou # from forge.tedomum.net/pilou/zuul-project-config
vars:
kaniko_registry: quay.io
kaniko_images:
- context: Dockerfile
repository: pilou/debian-systemd
build_args: [DEBIAN_RELEASE=stretch]
tags: [stretch]
build_args: [DEBIAN_RELEASE=bullseye]
tags: [bullseye]
- job:
name: kaniko-build-image-debian-systemd-buster
......@@ -24,8 +24,8 @@
- project:
check:
jobs:
- kaniko-build-image-debian-systemd-stretch
- kaniko-build-image-debian-systemd-buster
- kaniko-build-image-debian-systemd-bullseye
# TODO once available:
# check pipeline: use approval reporter (zuul)
# set approvals_required to 2: zuul & one developer (gitlab)
......@@ -33,5 +33,5 @@
# promote pipeline with merged requirement (add the 'latest' tag without rebuilding the image)
promote:
jobs:
- kaniko-build-image-debian-systemd-stretch
- kaniko-build-image-debian-systemd-buster
- kaniko-build-image-debian-systemd-bullseye
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment