Commit bd29a0c4 authored by Guillaume Perréal's avatar Guillaume Perréal
Browse files

Utilise les paramètres de Gitlab pour s'authentifier sur la registry.

parent 9357efd2
......@@ -29,6 +29,8 @@ docker:
tags: [dind]
variables:
IMAGE: "$CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG"
before_script:
- docker login -u "$CI_REGISTRY_USER" -p "$CI_REGISTRY_PASSWORD" "$CI_REGISTRY"
script:
- docker build --tag "$IMAGE" .
- docker run --rm "$IMAGE" build
......@@ -41,6 +43,8 @@ pages:
- if: $CI_COMMIT_BRANCH == "master"
variables:
IMAGE: "$CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG"
before_script:
- docker login -u "$CI_REGISTRY_USER" -p "$CI_REGISTRY_PASSWORD" "$CI_REGISTRY"
script:
- docker run --rm -v "$PWD/src:/src/ro" -v "$PWD/public:/public" "$IMAGE" build
artifacts:
......
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