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

Corrige .gitlab-ci-yml.

parent 43eef28b
...@@ -28,7 +28,7 @@ docker: ...@@ -28,7 +28,7 @@ docker:
stage: build stage: build
tags: [dind] tags: [dind]
variables: variables:
- IMAGE: "$CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG" IMAGE: "$CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG"
script: script:
- docker build --tag "$IMAGE" . - docker build --tag "$IMAGE" .
- docker run --rm "$IMAGE" build - docker run --rm "$IMAGE" build
...@@ -40,7 +40,7 @@ pages: ...@@ -40,7 +40,7 @@ pages:
rules: rules:
- if: $CI_COMMIT_BRANCH == "master" - if: $CI_COMMIT_BRANCH == "master"
variables: variables:
- IMAGE: "$CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG" IMAGE: "$CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG"
script: script:
- docker run --rm -v "$PWD/src:/src/ro" -v "$PWD/public:/public" "$IMAGE" build - docker run --rm -v "$PWD/src:/src/ro" -v "$PWD/public:/public" "$IMAGE" build
artifacts: 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