Commit a52998c6 authored by Laurent Peuch's avatar Laurent Peuch
Browse files

feat: use more explicite names for templates

parent ffa8dfa31fcf
Pipeline #52490 failed
......@@ -10,12 +10,12 @@ To include them use this snippet:
include:
- project: "open-source/gitlab-templates"
ref: "branch/default"
file: # the stages are:
- "templates/no-duplicate-pipelines.yml" # use workflow to avoid duplicated pipelines
- "templates/docker-build.yml" # build a docker image
- "templates/build-debian.yml" # will build a .deb and upload it to heptapod
- "templates/release-on-heptapod.yml" # this will create a release on heptapod AND uses uploaded .deb by build-debian
- "templates/publish-pypi.yml" # this will release on pypi using "tox -e pypi-publish"
file: # the stages are:
- "templates/no-duplicated-ci-pipelines.yml" # use workflow to avoid duplicated pipelines
- "templates/build-docker-image.yml"
- "templates/build-debian-package.yml" # will build a .deb and upload it to heptapod
- "templates/create-release-on-heptapod-including-debian-package.yml"
- "templates/upload-to-pypi.yml"
```
Depending on your templates you will need certains stages **in a specific order**:
......@@ -23,13 +23,13 @@ Depending on your templates you will need certains stages **in a specific order*
```yaml
stages:
# put your testing/linting stages here before
# for build-debian.yml
# for build-debian-package.yml
- build-debian
- upload-deb
# for docker-build.yml
- upload-deb-to-heptapod
# for build-docker-image.yml
# for release-on-heptapod.yml
- release
# for publish-pypi.yml
# for upload-to-pypi.yml
- publish
```
......@@ -39,17 +39,17 @@ A recommended configuration for a cube would be:
include:
- project: "open-source/gitlab-templates"
ref: "branch/default"
file: # the stages are:
- "templates/no-duplicate-pipelines.yml" # use workflow to avoid duplicated pipelines
- "templates/build-debian.yml" # will build a .deb and upload it to heptapod
- "templates/release-on-heptapod.yml" # this will create a release on heptapod AND uses uploaded .deb by build-debian
- "templates/publish-pypi.yml" # this will release on pypi using "tox -e pypi-publish"
file: # the stages are:
- "templates/no-duplicated-ci-pipelines.yml" # use workflow to avoid duplicated pipelines
- "templates/build-debian-package.yml" # will build a .deb and upload it to heptapod
- "templates/create-release-on-heptapod-including-debian-package.yml"
- "templates/upload-to-pypi.yml"
stages:
- lint
- test
- build-debian
- upload-deb
- build-debian-package
- upload-deb-to-heptapod
- release
- publish
```
......
......@@ -4,7 +4,7 @@ variables:
build-debian:
stage: build-debian
stage: build-debian-package
image: logilab/cubicweb:buster-buildpackage
rules:
- if: '$CI_MERGE_REQUEST_ID'
......@@ -20,7 +20,7 @@ build-debian:
- repo
upload-deb-to-heptapod:
stage: upload-deb
stage: upload-deb-to-heptapod
image: curlimages/curl:latest
rules:
- if: '$CI_MERGE_REQUEST_ID'
......
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