mirror of
https://github.com/usatiuk/y.git
synced 2025-10-28 10:37:47 +01:00
ci?
This commit is contained in:
23
.gitlab-ci.yml
Normal file
23
.gitlab-ci.yml
Normal 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
|
||||
Reference in New Issue
Block a user