Commit e8540af3 authored by Anthony FREYERMUTH's avatar Anthony FREYERMUTH
Browse files

[#2] Some modifications on CI, TODO: register a gitlab-runner on the VM

parent c489c45b
Pipeline #56188 failed with stage
in 22 seconds
stages: stages:
- build - build
- package # - package
- deploy # - deploy
maven-build: maven-build:
stage: build stage: build
script: "./mvnw clean install" tags:
artifacts: - build
paths: script: "./mvnw clean install"
- target/*.jar artifacts:
- target/*.jar
docker-build: docker-build:
stage: build stage: build
before_script: tags:
- docker logout - build
- echo "$CI_JOB_TOKEN" | docker login $CI_REGISTRY -u gitlab-ci-token --password-stdin before_script:
- docker logout
- echo "$CI_JOB_TOKEN" | docker login $CI_REGISTRY -u gitlab-ci-token --password-stdin
script: script:
- docker build --rm ./ -t ${IMAGE_FQDN} - docker build --rm ./ -t ${IMAGE_FQDN}
- docker push ${IMAGE_FQDN} - docker push ${IMAGE_FQDN}
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