diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..cd96d56 --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,23 @@ +stages: + - test + - build + +test: + stage: test + image: ${CI_REGISTRY}/bi-ido/bi-ido-registry/maven:3.8.6-openjdk-18 + script: + - ./gradlew test + +container: + stage: build + image: $CI_REGISTRY/ict/images/alpine/ci:latest + variables: + BUILDAH_ISOLATION: chroot + IMAGE_TAG: $CI_REGISTRY_IMAGE:$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 --retry 3 $IMAGE_TAG