Commit 713f13b6 authored by Tomas Krizek's avatar Tomas Krizek

ci: remove pkg:epel-7 pkg:fedora-29 jobs

These jobs started to suddenly fail inexplicably. They also
require privileged mode and are a mess in general

Build and packaging for these distros is handled by nightly OBS builds
nowadays, so let's remove these.

Perhaps in the future, it might make sense ot bring back some sensible
CentOS 7 build (without the packaging part) to make sure we keep
compatibility with older GnuTLS on every commit / MR, instead of
nightly.
parent 65ab7498
Pipeline #53740 canceled with stages
in 8 minutes and 48 seconds
......@@ -234,48 +234,6 @@ lint:tidy:
script:
- ninja -C build_ci* tidy
.pkgbuild: &pkgbuild
stage: test
except:
refs:
- master
variables:
- $SKIP_CI == "1"
image: $CI_REGISTRY/knot/knot-resolver/ci/fedora
only: # trigger job only in repos under our control
- branches@knot/knot-resolver
- branches@knot/knot-resolver-security
dependencies:
- archive
artifacts:
when: always
paths:
- epel-7-x86_64/
- fedora-29-x86_64/
- "*.src.rpm"
tags:
- privileged # mock requires additional capabilities (e.g. mount)
retry:
max: 1
when:
- script_failure
pkg:epel-7:
<<: *pkgbuild
script:
- ./scripts/make-srpm.sh
- mock --no-clean --dnf --old-chroot -r epel-7-x86_64 --rebuild *.src.rpm || (cat /var/lib/mock/epel-7-x86_64/result/build.log; false)
after_script:
- mv /var/lib/mock/epel-7-x86_64/result epel-7-x86_64
pkg:fedora-29:
<<: *pkgbuild
script:
- ./scripts/make-srpm.sh
- mock --no-clean --old-chroot -r fedora-29-x86_64 --rebuild *.src.rpm || (cat /var/lib/mock/fedora-29-x86_64/result/build.log; false)
after_script:
- mv /var/lib/mock/fedora-29-x86_64/result fedora-29-x86_64
respdiff:basic:
<<: *test
dependencies:
......
......@@ -11,13 +11,6 @@ $ docker login registry.labs.nic.cz
$ docker push registry.labs.nic.cz/knot/knot-resolver/ci/debian-buster:knot-$KNOT_BRANCH
```
* fedora
```
$ docker build --no-cache -t registry.labs.nic.cz/knot/knot-resolver/ci/fedora fedora
$ docker push registry.labs.nic.cz/knot/knot-resolver/ci/fedora
```
* turris
```
......
FROM fedora:29
WORKDIR "/tmp"
CMD ["/bin/bash"]
RUN dnf install -y mock rpkg git
# for scripts/make-distrofiles.sh
RUN dnf install -y dpkg-dev perl-Digest-*
# add OBS repo with Knot DNS to mock
RUN curl -Lo obs-epel7.repo 'https://download.opensuse.org/repositories/home:CZ-NIC:knot-resolver-testing/CentOS_7_EPEL/home:CZ-NIC:knot-resolver-testing.repo'
RUN sed -i -e "/^config_opts\[.yum.conf.]/r obs-epel7.repo" /etc/mock/epel-7-x86_64.cfg
RUN curl -Lo obs-fedora.repo 'https://download.opensuse.org/repositories/home:CZ-NIC:knot-resolver-testing/Fedora_29/home:CZ-NIC:knot-resolver-testing.repo'
RUN sed -i -e "/^config_opts\[.yum.conf.]/r obs-fedora.repo" /etc/mock/fedora-29-x86_64.cfg
# cache packages in mock to speed up CI tests
# This would require privileged build: https://github.com/moby/moby/issues/1916
# RUN dnf download --source knot-resolver
# RUN mock --no-clean --dnf --old-chroot -r epel-7-x86_64 --rebuild knot-resolver-*.src.rpm
# RUN mock --no-clean --old-chroot -r fedora-29-x86_64 --rebuild knot-resolver-*.src.rpm
# RUN rm *.src.rpm
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