Commit 3eb8a6cc authored by Anthony FREYERMUTH's avatar Anthony FREYERMUTH
Browse files

[#2] Trying to log in artifactory

parent 4ef50cbc
Pipeline #56358 failed
stages:
- build
- package
# - deploy
- deploy
variables:
AF_REGISTRY_URL: docker-repository.artifactory.ippon.fr
AF_REGISTRY_USER: livretaccueil-ci
AF_REGISTRY_PASSWORD: livretaccueil-ci
maven-build:
stage: build
......@@ -18,9 +23,7 @@ docker-build:
- build
before_script:
- docker logout
- echo $CI_JOB_TOKEN
- echo $CI_REGISTRY
- echo "$CI_JOB_TOKEN" | docker login --username=gitlab-ci-token --password-stdin $CI_REGISTRY
- docker login -u $AF_REGISTRY_USER -p $AF_REGISTRY_PASSWORD $AF_REGISTRY_URL
script:
- docker build --rm ./ -t ${IMAGE_FQDN}
- docker push ${IMAGE_FQDN}
......@@ -28,3 +31,14 @@ docker-build:
IMAGE_FQDN: ${CI_REGISTRY_IMAGE}:${CI_COMMIT_REF_SLUG}
only:
- preprod
deploy:
stage: deploy
tags:
- deploy
script:
- echo "Start deploying"
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