Commit 781147ae authored by Ruben ten Hove's avatar Ruben ten Hove
Browse files

Merge branch '5-docs-pin-and-tbump-readme-examples' into 'main'

docs: pin and tbump README examples

Closes #5

See merge request just-ci/templates!11
parents 9dafecbf e720e3f0
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -2,7 +2,10 @@
  "plugins": [
    "@semantic-release/commit-analyzer",
    "@semantic-release/release-notes-generator",
    "@semantic-release/gitlab"
    "@semantic-release/gitlab",
    ["@semantic-release/git", {
      "assets": ["README.md", "tbump.toml"]
    }]
  ],
  "branches": [
    "+([0-9])?(.{+([0-9]),x}).x",
+5 −1
Original line number Diff line number Diff line
# Just CI templates
# Just CI templates v4.0.1

Maintainers:
* Federico Falconieri: @falcorocks
@@ -42,6 +42,7 @@ Here is an example `.gitlab-ci.yml` importing the python template:
include:
  - project: 'just-ci/templates'
    file: 'templates/python.yml'
    ref: 'v4.0.1'
```

The above is a template for Python projects. Other templates can be found in `templates/`, for example:
@@ -58,6 +59,7 @@ Templates and pipelines may come with jobs you don't want/need to run. We have c
include:
  - project: 'just-ci/templates'
    file: 'templates/python.yml'
    ref: 'v4.0.1'

python:pytest:
  rules:
@@ -90,6 +92,7 @@ Use [child pipelines](https://docs.gitlab.com/ee/ci/pipelines/parent_child_pipel
include:
  - project: 'just-ci/templates'
    templates: 'templates/docker.yml'
    ref: 'v4.0.1'
    # root image will build fine without any further change needed

# child pipeline for second docker image
@@ -110,6 +113,7 @@ second-image:
include:
  - project: 'just-ci/templates'
    file: 'templates/docker.yml'
    ref: 'v4.0.1'

variables:
  KANIKO_REGISTRY_IMAGE: ${CI_REGISTRY_IMAGE}/second-image

tbump.toml

0 → 100644
+17 −0
Original line number Diff line number Diff line
[version]
current = "4.0.1"

regex = '''
  (?P<major>\d+)
  \.
  (?P<minor>\d+)
  \.
  (?P<patch>\d+)
  '''

[git]
message_template = "Bump to {new_version}"
tag_template = "v{new_version}"

[[file]]
src = "README.md"