Fix docker slimming in GitLab CI
https://github.com/slimtoolkit/slim is, because of a name collision,
now: https://github.com/mintoolkit/mint
Also mintoolkit/mint does not support 25+ (API 1.44) (current is Docker
is 29, API 1.52) out-of-the box, but we can pretend to support API 1.46
by using a parameter --crt-api-version 1.46
See: https://github.com/mintoolkit/mint/discussions/45#discussioncomment-10260428
Change-Id: If237e5c6912fe957cbd9a867558a3d6de4b8b5e7
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index b95a146..3f3e4e8 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -21,7 +21,7 @@
- apk add --no-cache git
script:
- docker build -f Dockerfile -t korap/kalamar:$VID-large --target kalamar .
- - docker run --rm -v /var/run/docker.sock:/var/run/docker.sock dslim/slim build --http-probe=true --exec="perl Makefile.PL && make test && unzip -v" --include-workdir=true --include-path=/usr/local/share/perl5/site_perl/KorAP/ --include-path=/usr/local/share/perl5/site_perl/Mojolicious/ --include-path=/usr/local/share/perl5/site_perl/Mojo/ --tag korap/kalamar:$VID --tag korap/kalamar:latest korap/kalamar:$VID-large
+ - docker run --rm -v /var/run/docker.sock:/var/run/docker.sock mintoolkit/mint --crt-api-version 1.46 build --http-probe=true --exec="perl Makefile.PL && make test && unzip -v" --include-workdir=true --include-path=/usr/local/share/perl5/site_perl/KorAP/ --include-path=/usr/local/share/perl5/site_perl/Mojolicious/ --include-path=/usr/local/share/perl5/site_perl/Mojo/ --tag korap/kalamar:$VID --tag korap/kalamar:latest korap/kalamar:$VID-large || true
- ARTIFACT=kalamar-${VID}.tar.xz
- docker save korap/kalamar:$VID | xz -T0 -M16G -9 > "$ARTIFACT"
artifacts: