настройка сi-cd

This commit is contained in:
Kayashov.SM
2025-04-24 16:08:34 +04:00
parent 0f39e22310
commit 4ca95f65a3
3 changed files with 34 additions and 6 deletions

18
.gitlab-ci.yml Normal file
View File

@@ -0,0 +1,18 @@
stages:
- build
- docker
maven-build:
image: maven:3.6.3-openjdk-17-slim
stage: build
script: "mvn -am clean package"
artifacts:
paths:
- target/*.jar
docker-build:
stage: docker
script:
- docker login -u gitlab-ci-token -p $CI_JOB_TOKEN http://192.168.1.100:9093
- docker build -t 192.168.1.100:9093/kayashov/my-bar .
- docker push 192.168.1.100:9093/kayashov/my-bar