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

Génère les pages directement l'image Docker.

parent 2836eadb
......@@ -38,15 +38,11 @@ docker:
pages:
stage: deploy
tags: [dind]
image: "$CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG"
rules:
- 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
- build
artifacts:
name: pages
paths:
......
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