9 Commits

Author SHA1 Message Date
7c701cfd79 Set target repository 2022-08-25 11:09:42 +02:00
c3db123a7a add rsync to Dockerfile 2022-08-25 10:38:48 +02:00
623f684685 fix stages 2022-08-24 16:38:29 +02:00
2a1c73923f fix 2022-08-24 16:36:54 +02:00
4d58ebb53f Add pkg building 2022-08-24 16:35:32 +02:00
85e8416f13 add whitespace to see if pipeline is triggered 2022-08-24 11:28:53 +02:00
032b8f4838 fix distro 2022-08-24 11:09:48 +02:00
31921dfbb5 Add Dockerfile.jammy 2022-08-24 11:06:04 +02:00
067f6e20df Build gitlab images in gitlab-ci 2022-08-24 09:31:36 +02:00
5 changed files with 11 additions and 124 deletions

View File

@ -1,12 +1,7 @@
--- ---
include: include:
- remote: 'https://git.scc.kit.edu/KIT-CERT/publish/-/raw/main/gitlab-ci/ssh-config.yml'
- remote: 'https://git.scc.kit.edu/KIT-CERT/publish/-/raw/main/gitlab-ci/build_image.yml' - remote: 'https://git.scc.kit.edu/KIT-CERT/publish/-/raw/main/gitlab-ci/build_image.yml'
- remote: 'https://git.scc.kit.edu/KIT-CERT/publish/-/raw/main/gitlab-ci/gbp-pkg.yml' - remote: 'https://git.scc.kit.edu/KIT-CERT/publish/-/raw/main/gitlab-ci/python-pkg.yml'
stages:
- build_image
- build_pkg
variables: variables:
BUILD_CONTEXT: ci_container BUILD_CONTEXT: ci_container
@ -15,54 +10,27 @@ variables:
TARGET_REPOSITORY: "bullseye" TARGET_REPOSITORY: "bullseye"
stages:
- build_image
- build_pkg
- debian-package
.image-buster: .image-buster:
variables:
IMAGE_NAME: pkg_build-exim-encrypt-dlfunc/buster IMAGE_NAME: pkg_build-exim-encrypt-dlfunc/buster
BUILD_FILE: Dockerfile.buster
TARGET_REPOSITORY: "buster" .image-bullseye:
IMAGE_NAME: pkg_build-exim-encrypt-dlfunc/bullseye
.image-jammy: .image-jammy:
variables: variables:
IMAGE_NAME: pkg_build-exim-encrypt-dlfunc/jammy IMAGE_NAME: pkg_build-exim-encrypt-dlfunc/jammy
TARGET_REPOSITORY: "jammy"
BUILD_FILE: Dockerfile.jammy BUILD_FILE: Dockerfile.jammy
.image-focal:
variables:
IMAGE_NAME: pkg_build-exim-encrypt-dlfunc/focal
TARGET_REPOSITORY: "focal"
BUILD_FILE: Dockerfile.focal
build_pkg_image_buster:
extends:
- .image-buster
- build_pkg_image
build_pkg_image_jammy: build_pkg_image_jammy:
extends: extends:
- .image-jammy - .image-jammy
- build_pkg_image - build_pkg_image
build_pkg_image_focal:
extends:
- .image-focal
- build_pkg_image
pkg_buster:
extends:
- .image-buster
- gbp_pkg
pkg_focal:
extends:
- .image-focal
- gbp_pkg
pkg_jammy:
extends:
- .image-jammy
- gbp_pkg
#.code-coverage: #.code-coverage:
# stage: build # stage: build
# script: # script:

View File

@ -1,40 +0,0 @@
FROM debian:latest
LABEL org.opencontainers.image.created=${BUILDTIMESTAMP} \
org.opencontainers.image.authors="Heiko Reese <reese@kit.edu>" \
org.opencontainers.image.title="exim build container" \
org.opencontainers.image.description="A buld environment for exim-encrypt-dlfunc" \
org.opencontainers.image.source="https://git.scc.kit.edu/mail/exim-encrypt-dlfunc/" \
org.opencontainers.image.licenses="Apache-2.0"
RUN apt-get update; \
DEBIAN_FRONTEND=noninteractive DEBIAN_PRIORITY=critical apt-get install --no-install-recommends -y \
build-essential \
exim4-daemon-heavy \
exim4-dev \
gcovr \
git \
libsodium-dev \
openssl \
pkg-config \
python3-pip \
libxml2-utils \
debhelper \
debsigs \
devscripts \
dh-make \
git-buildpackage \
gpgv1 \
meson \
less \
mc \
rsync \
openssh-client \
vim; \
DEBIAN_FRONTEND=noninteractive DEBIAN_PRIORITY=critical apt-get clean; \
rm -rf /var/lib/apt/lists/*;
RUN pip3 install --upgrade meson ninja; \
rm -rf ~/.cache/pip/*;
WORKDIR /mnt/

View File

@ -1,41 +0,0 @@
FROM docker.io/library/ubuntu:focal
LABEL org.opencontainers.image.created=${BUILDTIMESTAMP} \
org.opencontainers.image.authors="Heiko Reese <reese@kit.edu>" \
org.opencontainers.image.title="exim build container" \
org.opencontainers.image.description="A buld environment for exim-encrypt-dlfunc" \
org.opencontainers.image.source="https://git.scc.kit.edu/mail/exim-encrypt-dlfunc/" \
org.opencontainers.image.licenses="Apache-2.0"
RUN apt-get update; \
DEBIAN_FRONTEND=noninteractive DEBIAN_PRIORITY=critical apt-get install --no-install-recommends -y \
build-essential \
exim4-daemon-heavy \
exim4-dev \
gcovr \
git \
libsodium-dev \
openssl \
pkg-config \
python3-pip \
libxml2-utils \
debhelper \
debsigs \
devscripts \
dh-make \
git-buildpackage \
gpgv1 \
meson \
less \
mc \
rsync \
openssh-client \
vim; \
DEBIAN_FRONTEND=noninteractive DEBIAN_PRIORITY=critical apt-get clean; \
rm -rf /var/lib/apt/lists/*;
RUN pip3 install --upgrade meson ninja; \
rm -rf ~/.cache/pip/*;
WORKDIR /mnt/

View File

@ -29,7 +29,6 @@ RUN apt-get update; \
meson \ meson \
less \ less \
mc \ mc \
rsync \
openssh-client \ openssh-client \
vim; \ vim; \
DEBIAN_FRONTEND=noninteractive DEBIAN_PRIORITY=critical apt-get clean; \ DEBIAN_FRONTEND=noninteractive DEBIAN_PRIORITY=critical apt-get clean; \

1
debian/rules vendored
View File

@ -17,6 +17,7 @@ export DEB_BUILD_MAINT_OPTIONS = hardening=+all
%: %:
dh $@ dh $@
# dh_make generated override targets # dh_make generated override targets
# This is example for Cmake (See https://bugs.debian.org/641051 ) # This is example for Cmake (See https://bugs.debian.org/641051 )
#override_dh_auto_configure: #override_dh_auto_configure: