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

[#3] WIP : Some CI / CD code

parent 00a380f7
Pipeline #56182 failed
stages:
- build
- package
- deploy
maven-build:
stage: build
script: "./mvnw clean install"
artifacts:
paths:
- target/*.jar
docker-build:
stage: build
before_script:
- docker logout
- echo "$CI_JOB_TOKEN" | docker login $CI_REGISTRY -u gitlab-ci-token --password-stdin
script:
- docker build --rm ./ -t ${IMAGE_FQDN}
- docker push ${IMAGE_FQDN}
variables:
IMAGE_FQDN: ${CI_REGISTRY_IMAGE}:${CI_COMMIT_REF_SLUG}
only:
- preprod
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