# -*- coding: utf-8 -*-
# vim: ft=yaml
---
include:
  - local: templates/Rules.yaml
  - local: templates/Runners/eole-docker.yaml
  - local: templates/Lint/Commitlint.yaml
  - local: templates/Docker.yaml
  - local: templates/Release/Semantic-release.yaml

stages:
  - lint
  - build
  - release

.docker-matrix:
  parallel:
    matrix:
      - IMAGE_NAME: [commitlint, semantic-release-gitlab]

###############################################################################
# `build` stage: `*-docker-build`
###############################################################################
# Suffix all jobs to avoid conflict with other jobs names
build-docker:
  extends:
    - .docker-matrix
    - .build-docker-image