Skip to content
Commits on Source (24)
# variables in the GitLab CI/CD variables:
# GITLAB_TOKEN to support the semantic-release
# DOCKER_AUTH_CONFIG to support the usage of private docker images as job docker image
# TMPL_RELEASE_ENABLED to enable the semantic-release job
# TBC_NAMESPACE: smartdatalab/public/ci-cd-components
include:
- project: "to-be-continuous/tools/gitlab-ci"
ref: "master"
file: "/templates/extract.yml"
- project: "to-be-continuous/tools/gitlab-ci"
ref: "master"
file: "/templates/validation.yml"
- project: "to-be-continuous/kicker"
ref: "master"
file: "/templates/validation.yml"
- component: $CI_SERVER_FQDN/to-be-continuous/bash/gitlab-ci-bash@3.6
- component: $CI_SERVER_FQDN/$TBC_NAMESPACE/gitlab-ci/extract@master
inputs:
extract-script-job-tags: ["docker"]
- component: $CI_SERVER_FQDN/$TBC_NAMESPACE/gitlab-ci/validation@master
inputs:
check-links-job-tags: ["docker"]
tbc-check-job-tags: ["docker"]
tbc-check-image: cicd-docker-dev.artifact.tecnalia.dev/tbc-check:master
gitlab-ci-lint-job-tags: ["docker"]
- component: $CI_SERVER_FQDN/$TBC_NAMESPACE/kicker/validation@master
inputs:
kicker-validation-job-tags: ["docker"]
schema-base-url: "https://git.code.tecnalia.dev/api/v4/projects/smartdatalab%2Fpublic%2Fci-cd-components%2Fkicker/repository/files"
- component: $CI_SERVER_FQDN/$TBC_NAMESPACE/bash/gitlab-ci-bash@master
inputs:
bash-shellcheck-job-tags: ["docker"]
shellcheck-files: "*.sh"
- component: $CI_SERVER_FQDN/$TBC_NAMESPACE/gitleaks/gitlab-ci-gitleaks@master
inputs:
gitleaks-job-tags: ["docker"]
- local: "templates/gitlab-ci-semrel.yml"
variables:
GITLAB_CI_FILES: "templates/gitlab-ci-semrel.yml"
GIT_STRATEGY: clone
semantic-release:
rules:
# on production branch(es): auto if SEMREL_AUTO_RELEASE_ENABLED
- if: '$TMPL_RELEASE_ENABLED == "true" && $CI_COMMIT_REF_NAME =~ $PROD_REF'
tags: ["docker"]
## [3.14.2](https://git.code.tecnalia.dev/smartdatalab/public/ci-cd-components/semantic-release/compare/3.14.1...3.14.2) (2025-05-07)
### Bug Fixes
* prevent sem-rel from running in scheduled pipelines ([e872dc7](https://git.code.tecnalia.dev/smartdatalab/public/ci-cd-components/semantic-release/commit/e872dc7b99b9a02d26e7994062a7d14978d60d6e))
## [3.14.2](https://gitlab.com/to-be-continuous/semantic-release/compare/3.14.1...3.14.2) (2025-04-09)
### Bug Fixes
* prevent sem-rel from running in scheduled pipelines ([e872dc7](https://gitlab.com/to-be-continuous/semantic-release/commit/e872dc7b99b9a02d26e7994062a7d14978d60d6e))
## [3.14.1](https://gitlab.com/to-be-continuous/semantic-release/compare/3.14.0...3.14.1) (2025-04-04)
......@@ -31,7 +45,14 @@
### Features
* disable tracking service by default ([9d93a8b](https://gitlab.com/to-be-continuous/semantic-release/commit/9d93a8bbe235ac0c43667dccd0d7018eeeac53ff))
* disable tracking service by default ([9d93a8b](https://git.code.tecnalia.dev/smartdatalab/public/ci-cd-components/semantic-release/commit/9d93a8bbe235ac0c43667dccd0d7018eeeac53ff))
## [3.11.5](https://git.code.tecnalia.dev/smartdatalab/public/ci-cd-components/semantic-release/compare/3.11.4...3.11.5) (2025-01-20)
### Bug Fixes
* add preset to semantic-release-info ([6c074f6](https://git.code.tecnalia.dev/smartdatalab/public/ci-cd-components/semantic-release/commit/6c074f671b3e48480f8aea04f71df00f93d54fc0))
## [3.11.5](https://gitlab.com/to-be-continuous/semantic-release/compare/3.11.4...3.11.5) (2024-11-17)
......@@ -59,7 +80,7 @@
### Bug Fixes
* trace without package.json ([3d7b6b0](https://gitlab.com/to-be-continuous/semantic-release/commit/3d7b6b01637b8fc9c2ba5aa3a295460f07c84fc8))
* trace without package.json ([3d7b6b0](https://git.code.tecnalia.dev/smartdatalab/public/ci-cd-components/semantic-release/commit/3d7b6b01637b8fc9c2ba5aa3a295460f07c84fc8))
## [3.11.1](https://gitlab.com/to-be-continuous/semantic-release/compare/3.11.0...3.11.1) (2024-07-09)
......
......@@ -20,7 +20,7 @@ Add the following to your `.gitlab-ci.yml`:
```yaml
include:
# 1: include the component
- component: $CI_SERVER_FQDN/to-be-continuous/semantic-release/gitlab-ci-semrel@3.14.1
- component: $CI_SERVER_FQDN/to-be-continuous/semantic-release/gitlab-ci-semrel@3.14.2
# 2: set/override component inputs
inputs:
changelog-enabled: true # ⚠ this is only an example
......@@ -34,7 +34,7 @@ Add the following to your `.gitlab-ci.yml`:
include:
# 1: include the template
- project: 'to-be-continuous/semantic-release'
ref: '3.14.1'
ref: '3.14.2'
file: '/templates/gitlab-ci-semrel.yml'
variables:
......@@ -104,6 +104,7 @@ As specified in the previous chapter, these variables are only used to generated
| `changelog-plugin` / `SEMREL_CHANGELOG_PLUGIN` | NPM plugin name for the [changelog](https://github.com/semantic-release/changelog#semantic-releasechangelog) plugin | `@semantic-release/changelog` |
| `git-plugin` / `SEMREL_GIT_PLUGIN` | NPM plugin name for the [git](https://github.com/semantic-release/git#semantic-releasegit) plugin | `@semantic-release/git` |
| `exec-plugin` / `SEMREL_EXEC_PLUGIN` | NPM plugin name for the [exec](https://github.com/semantic-release/exec#semantic-releaseexec) plugin | `@semantic-release/exec` |
| `semantic-release-job-tags` / `SEMANTIC_RELEASE_JOB_TAGS` | Tags to be used for selecting runners for the job | `[]` |
#### Hook scripts
......@@ -388,9 +389,9 @@ With:
```yaml
include:
# main template
- component: $CI_SERVER_FQDN/to-be-continuous/semantic-release/gitlab-ci-semrel@3.14.1
- component: $CI_SERVER_FQDN/to-be-continuous/semantic-release/gitlab-ci-semrel@3.14.2
# Vault variant
- component: $CI_SERVER_FQDN/to-be-continuous/semantic-release/gitlab-ci-semrel-vault@3.14.1
- component: $CI_SERVER_FQDN/to-be-continuous/semantic-release/gitlab-ci-semrel-vault@3.14.2
inputs:
vault-base-url: "https://vault.acme.host/v1"
# audience claim for JWT
......
......@@ -111,6 +111,13 @@
"description": "[message @semantic-release/git option](https://github.com/semantic-release/git#message)",
"advanced": true
},
{
"name": "SEMANTIC_RELEASE_JOB_TAGS",
"description": "Tags to be used for selecting runners for the job",
"type": "array",
"default": [],
"advanced": true
},
{
"name": "SEMREL_COMMIT_SPEC",
"description": "Commit specification `preset` (possible values: `angular`, `atom`, `codemirror`, `ember`, `eslint`, `express`, `jquery`, `jshint`, `conventionalcommits`). The default is `angular`.",
......
......@@ -22,7 +22,7 @@ variables:
.semrel-base:
services:
- name: "$TBC_TRACKING_IMAGE"
command: ["--service", "semrel", "3.14.1"]
command: ["--service", "semrel", "3.14.2"]
- name: "$TBC_VAULT_IMAGE"
alias: "vault-secrets-provider"
variables:
......
......@@ -107,7 +107,11 @@ spec:
exec-plugin:
description: The npm plugin name for the exec plugin. The default is `@semantic-release/exec`
default: '@semantic-release/exec'
semantic-release-job-tags:
description: Tags to be used for selecting runners for the job
type: array
default: []
---
workflow:
rules:
......@@ -831,7 +835,7 @@ stages:
image: $SEMREL_IMAGE
services:
- name: "$TBC_TRACKING_IMAGE"
command: ["--service", "semrel", "3.14.1"]
command: ["--service", "semrel", "3.14.2"]
before_script:
- !reference [.semrel-scripts]
# install git and OpenSSH
......@@ -867,6 +871,8 @@ semantic-release-info:
reports:
dotenv: "${SEMREL_CONFIG_DIR}/semrel.out.env"
rules:
- if: $CI_PIPELINE_SOURCE == "schedule"
when: never
- if: $CI_COMMIT_TAG
when: never
- if: '$SEMREL_INFO_ON == "prod" && $CI_COMMIT_REF_NAME =~ $PROD_REF'
......@@ -883,6 +889,8 @@ semantic-release:
- semantic-release ${TRACE:+--debug} --ci $dry_run_opt $SEMREL_EXTRA_ARGS
dependencies: []
rules:
- if: $CI_PIPELINE_SOURCE == "schedule"
when: never
- if: '$SEMREL_RELEASE_DISABLED == "true"'
when: never
- if: $CI_COMMIT_TAG
......@@ -895,3 +903,5 @@ semantic-release:
# else manual
- when: manual
allow_failure: true
tags: $[[ inputs.semantic-release-job-tags ]]