blob: bc3dd0c9f622e524d245de5c7ecdbdd6c4cd0439 [file] [log] [blame]
#!/bin/bash
# Get the version from the parameter or
# the latest git tag or "latest"
VERSION="${1:-$(git describe --tags --abbrev=0 2>/dev/null || echo "latest")}"
# Remove the leading 'v' if it exists
VERSION=${VERSION#v}
# Build the docker-slim command
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:$VERSION" \
--tag "korap/kalamar:latest" \
"korap/kalamar:${VERSION}-large"