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

Ajoute et utilise un template de job pour Gitlab-CI.

parent 041afc71
include:
- local: 'prezbuilder-ci.yml'
default:
retry: 2
interruptible: true
......@@ -37,15 +40,9 @@ docker:
- docker push "$IMAGE"
pages:
stage: deploy
image:
name: "$CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG"
entrypoint: [""]
extends: .prezbuilder
variables:
PREZBUILDER_IMAGE: "$CI_REGISTRY_IMAGE"
PREZBUILDER_TAG: "$CI_COMMIT_REF_SLUG"
rules:
- if: $CI_COMMIT_BRANCH == "master"
script:
- prezbuilder build
artifacts:
name: pages
paths:
- public/
.prezbuilder:
retry: 2
interruptible: true
tags: [docker]
variables:
PREZBUILDER_IMAGE: gitlab-registry.irstea.fr/pole-is/tools/prezbuilder
PREZBUILDER_TAG: master
PREZBUILDER_SRC: src
image:
name: "${PREZBUILDER_IMAGE}:${PREZBUILDER_TAG}"
entrypoint: [""]
script:
- prezbuilder "${PREZBUILDER_SRC}" public
artifacts:
name: pages
paths:
- public/
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