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

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

No related merge requests found
Showing with 2 additions and 6 deletions
+2 -6
...@@ -38,15 +38,11 @@ docker: ...@@ -38,15 +38,11 @@ docker:
pages: pages:
stage: deploy stage: deploy
tags: [dind] image: "$CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG"
rules: rules:
- if: $CI_COMMIT_BRANCH == "master" - 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: script:
- docker run --rm -v "$PWD/src:/src:ro" -v "$PWD/public:/public" "$IMAGE" build - build
artifacts: artifacts:
name: pages name: pages
paths: paths:
......
Supports Markdown
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