| # gitlab ci pipeline to build kustvakt docker container |
| # automatically triggered on tag pushs or run manually |
| # Download latest container from artifacts and import it: |
| # curl -Ls 'https://gitlab.ids-mannheim.de/KorAP/kustvakt/-/jobs/artifacts/master/raw/kustvakt.tar.xz?job=build-docker' | docker load |
| - if: $CI_COMMIT_TAG =~ /.+/ |
| VID: $CI_COMMIT_BRANCH-$CI_COMMIT_SHORT_SHA |
| - docker build -f Dockerfile -t korap/kustvakt:$VID -t korap/kustvakt:latest -t korap/kustvakt:$VID-full -t korap/kustvakt:latest-full --target kustvakt-full . |
| - docker save korap/kustvakt:$VID-full | xz -T0 -M16G -9 > kustvakt.tar.xz |