diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 85ed66e..05aae68 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,4 +1,5 @@ stages: + - package - compile - test - build @@ -11,6 +12,20 @@ cache: - .m2/repository/ - "**/target/" +container: + stage: package + image: $CI_REGISTRY/ict/images/alpine/ci:latest + variables: + BUILDAH_ISOLATION: chroot + IMAGE_TAG: $CI_REGISTRY:$CI_COMMIT_REF_SLUG + before_script: + - apk add buildah fuse-overlayfs + - buildah login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY + - buildah info + script: + - buildah build --tag $IMAGE_TAG -f Dockerfile + - buildah push $IMAGE_TAG + compile: stage: compile image: maven:3.8.6-openjdk-18