This commit is contained in:
Stepan Usatiuk
2023-12-30 22:54:50 +01:00
parent 52f26c15db
commit 2cc19ba3bf

23
.gitlab-ci.yml Normal file
View File

@@ -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