Commit 472a589c authored by Administrator's avatar Administrator

Update .gitlab-ci.yml

parent a68c7b71
image: docker:latest image: openjdk:8-jdk-alpine
services: services:
- docker:dind - docker:dind
variables:
DOCKER_HOST: tcp://docker:2375/
DOCKER_DRIVER: overlay2
cache: cache:
paths: paths:
- .m2/ - .m2/
...@@ -16,7 +20,7 @@ build: ...@@ -16,7 +20,7 @@ build:
stage: build stage: build
script: script:
- docker build --pull -t "$CI_REGISTRY_IMAGE" . - docker build --pull -t "$CI_REGISTRY_IMAGE" .
- docker tag maven:latest "$CI_REGISTRY_IMAGE/$CI_PROJECT_NAME:latest" - docker tag openjdk:8-jdk-alpine "$CI_REGISTRY_IMAGE/$CI_PROJECT_NAME:latest"
- docker push "$CI_REGISTRY_IMAGE/$CI_PROJECT_NAME:latest" - docker push "$CI_REGISTRY_IMAGE/$CI_PROJECT_NAME:latest"
sonar: sonar:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment