fix ci????

This commit is contained in:
Stepan Usatiuk
2023-12-30 23:10:27 +01:00
parent 22e5f08d97
commit 4062e5db83
2 changed files with 8 additions and 10 deletions

View File

@@ -8,16 +8,14 @@ test:
script:
- cd server && ./gradlew test
container:
build:
stage: build
image: $CI_REGISTRY/ict/images/alpine/ci:latest
image: docker:24.0.5
services:
- docker:24.0.5-dind
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
- docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
- docker build -t $IMAGE_TAG .
- docker push $IMAGE_TAG

View File

@@ -12,7 +12,7 @@ WORKDIR /usr/src/app/server
COPY ./server/. .
RUN ./gradlew clean build && bash -c "rm build/libs/*-plain.jar && mv build/libs/*.jar server.jar"
# The best JVM ;)
FROM azul/prime:17
WORKDIR /usr/src/app