blob: b726145a46c16fed47c141087a2b0b95d309f07b [file] [log] [blame]
Akronf87af5c2026-01-24 12:24:38 +01001#!/bin/bash
2
3# Get the version from the parameter or
4# the latest git tag or "latest"
5VERSION="${1:-$(git describe --tags --abbrev=0 2>/dev/null || echo "latest")}"
6
7# Remove the leading 'v' if it exists
8VERSION=${VERSION#v}
9
10# Build the docker-slim command
11slim build --http-probe=true \
Akronf412d442025-10-01 10:52:39 +020012 --exec="perl Makefile.PL && MOJO_MODE=test make test && unzip -v" \
Akronf87af5c2026-01-24 12:24:38 +010013 --include-workdir=true \
14 --include-path="/usr/local/share/perl5/site_perl/KorAP/" \
15 --include-path="/usr/local/share/perl5/site_perl/Mojolicious/" \
16 --include-path="/usr/local/share/perl5/site_perl/Mojo/" \
17 --tag "korap/kalamar:$VERSION" \
18 --tag "korap/kalamar:latest" \
19 "korap/kalamar:${VERSION}-large"