| Akron | f87af5c | 2026-01-24 12:24:38 +0100 | [diff] [blame^] | 1 | #!/bin/bash |
| 2 | |
| 3 | # Get the version from the parameter or |
| 4 | # the latest git tag or "latest" |
| 5 | VERSION="${1:-$(git describe --tags --abbrev=0 2>/dev/null || echo "latest")}" |
| 6 | |
| 7 | # Remove the leading 'v' if it exists |
| 8 | VERSION=${VERSION#v} |
| 9 | |
| 10 | # Build the docker-slim command |
| 11 | slim build --http-probe=true \ |
| 12 | --exec="perl Makefile.PL && make test && unzip -v" \ |
| 13 | --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" |