- Jan 17, 2022
-
-
Daniel Dehennin authored
The previous `.on-release-tag` match everything starting with `release/` and so prerelease tags like `release/X.Y.Z-testing` or `release/X.Y.Z-dev`. When doing prerelease, we want to avoid updating stable tags, we restrict the match for release tags and add specific rules to match `testing` and `dev` tags.
-
- Dec 09, 2021
-
-
Daniel Dehennin authored
The previous rules template set did not permit to combine rules easily in user jobs. Using a single hash of individual rules permit to reference them more clearly. It avoids duplicated conditionnals in the current rules set and marke it easier to combine them in user jobs, with some limitations[1]. * templates/Rules.yaml: define the `.rules-map` hash of individual rules and reference them in rules templates * templates/Release/Semantic-release.yaml: use the `.rules-map` directly to reduce the conditionnal duplication Closes #3 Footnotes: [1] https://forum.gitlab.com/t/add-conditions-to-rules-array-merged-with-reference/62600
-
- Dec 06, 2021
-
-
Daniel Dehennin authored
Gitlab does not permit to easily add pattern to skip CI pipelines based on commit messages[1]. * templates/Rules.yaml: exclude commits with message matching some variations around `draft` and `wip`. Closes: #2 Footnotes: [1] https://gitlab.com/gitlab-org/gitlab/-/blob/master/lib/gitlab/ci/pipeline/chain/skip.rb
-
- Nov 26, 2021
-
-
Daniel Dehennin authored
This make a better distinction between `stable` software and software deployed in production. We define 3 branches: - `dev`: new developped features are integrated here, this is the default branch - `testing`: is a fork of `dev` when we want to prepare the next release, this is the branch from where release bugfixes are derived and merged back - `stable`: is where the `testing` branch is merged to produce a new release
-
- Nov 23, 2021
-
-
Daniel Dehennin authored
We define rules to match somewhate a git-flow style workflow to activate jobs: - `.not-on-prod`: on all branches except production - `.on-branches` : on supporting branches, i.e. everything except production and developpment - `.on-dev`: on developpment branch only - `.on-prod`: on production branch only - `.on-release-tag`: on the release tag only We always exclude pipeline triggered from schedule. * templates/Rules.yaml: define the new rules templates. * templates/Lint/Commitlint.yaml (commitlint): execute on all branch except production.
-
- Oct 20, 2021
-
-
Daniel Dehennin authored
This will permit other projects to [include](https://docs.gitlab.com/ee/ci/yaml/#include) the defined templates The `templates/Rules.yaml` must be included and jobs will `extends` the templates depending at which moment they must be executed.
-