Skip to content
Snippets Groups Projects
Commit 6992a4ae authored by Benguria Elguezabal, Gorka's avatar Benguria Elguezabal, Gorka
Browse files

Merge remote-tracking branch 'upstream/master'

# Conflicts:
#	.gitlab-ci.yml
parents 45931128 76351df2
Branches
Tags
No related merge requests found
Pipeline #157501 passed
# 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: include:
- component: git.code.tecnalia.com/smartdatalab/public/ci-cd-components/gitlab-ci/extract@master - component: $CI_SERVER_FQDN/$TBC_NAMESPACE/gitlab-ci/extract@master
inputs: inputs:
extract-script-job-tags: ["docker"] extract-script-job-tags: ["docker"]
- component: git.code.tecnalia.com/smartdatalab/public/ci-cd-components/gitlab-ci/validation@master - component: $CI_SERVER_FQDN/$TBC_NAMESPACE/gitlab-ci/validation@master
inputs: inputs:
check-links-job-tags: ["docker"] check-links-job-tags: ["docker"]
tbc-check-job-tags: ["docker"] tbc-check-job-tags: ["docker"]
tbc-check-image: cicd-docker-dev.artifact.tecnalia.com/tbc-check:master tbc-check-image: cicd-docker-dev.artifact.tecnalia.com/tbc-check:master
gitlab-ci-lint-job-tags: ["docker"] gitlab-ci-lint-job-tags: ["docker"]
- component: git.code.tecnalia.com/smartdatalab/public/ci-cd-components/kicker/validation@master - component: $CI_SERVER_FQDN/$TBC_NAMESPACE/kicker/validation@master
inputs: inputs:
kicker-validation-job-tags: ["docker"] kicker-validation-job-tags: ["docker"]
schema-base-url: "https://git.code.tecnalia.com/api/v4/projects/smartdatalab%2Fpublic%2Fci-cd-components%2Fkicker/repository/files" schema-base-url: "https://git.code.tecnalia.com/api/v4/projects/smartdatalab%2Fpublic%2Fci-cd-components%2Fkicker/repository/files"
- component: git.code.tecnalia.com/smartdatalab/public/ci-cd-components/bash/gitlab-ci-bash@master yajsv-image: "cicd-docker-dev.artifact.tecnalia.com/yajsv:latest"
- component: $CI_SERVER_FQDN/$TBC_NAMESPACE/bash/gitlab-ci-bash@master
inputs: inputs:
bash-shellcheck-job-tags: ["docker"] bash-shellcheck-job-tags: ["docker"]
- component: git.code.tecnalia.com/smartdatalab/public/ci-cd-components/semantic-release/gitlab-ci-semrel@master shellcheck-files: "*.sh"
- component: $CI_SERVER_FQDN/$TBC_NAMESPACE/semantic-release/gitlab-ci-semrel@master
inputs: inputs:
semantic-release-job-tags: ["docker"] semantic-release-job-tags: ["docker"]
- component: $CI_SERVER_FQDN/$TBC_NAMESPACE/gitleaks/gitlab-ci-gitleaks@master
stages: inputs:
- build gitleaks-job-tags: ["docker"]
- publish
variables: variables:
GITLAB_CI_FILES: "templates/gitlab-ci-sonar.yml" GITLAB_CI_FILES: "templates/gitlab-ci-sonar.yml"
BASH_SHELLCHECK_FILES: "*.sh"
GIT_STRATEGY: clone GIT_STRATEGY: clone
stages:
- build
- test
- publish
semantic-release: semantic-release:
rules: rules:
# on production branch(es): auto if SEMREL_AUTO_RELEASE_ENABLED # on production branch(es): auto if SEMREL_AUTO_RELEASE_ENABLED
......
...@@ -7,16 +7,16 @@ security vulnerabilities as early as possible. ...@@ -7,16 +7,16 @@ security vulnerabilities as early as possible.
## Usage ## Usage
This template can be used both as a [CI/CD component](https://docs.gitlab.com/ee/ci/components/#use-a-component-in-a-cicd-configuration) or using the legacy [`include:project`](https://docs.gitlab.com/ee/ci/yaml/index.html#includeproject) syntax. This template can be used both as a [CI/CD component](https://docs.gitlab.com/ee/ci/components/#use-a-component) or using the legacy [`include:project`](https://docs.gitlab.com/ee/ci/yaml/index.html#includeproject) syntax.
### Use as a CI/CD component ### Use as a CI/CD component
Add the following to your `gitlab-ci.yml`: Add the following to your `.gitlab-ci.yml`:
```yaml ```yaml
include: include:
# 1: include the component # 1: include the component
- component: gitlab.com/to-be-continuous/sonar/gitlab-ci-sonar@4.2.3 - component: $CI_SERVER_FQDN/to-be-continuous/sonar/gitlab-ci-sonar@4.2.3
# 2: set/override component inputs # 2: set/override component inputs
inputs: inputs:
host-url: https://sonarqube.acme.host # ⚠ this is only an example host-url: https://sonarqube.acme.host # ⚠ this is only an example
...@@ -24,7 +24,7 @@ include: ...@@ -24,7 +24,7 @@ include:
### Use as a CI/CD template (legacy) ### Use as a CI/CD template (legacy)
Add the following to your `gitlab-ci.yml`: Add the following to your `.gitlab-ci.yml`:
```yaml ```yaml
include: include:
...@@ -116,9 +116,9 @@ With: ...@@ -116,9 +116,9 @@ With:
```yaml ```yaml
include: include:
# main template # main template
- component: gitlab.com/to-be-continuous/sonar/gitlab-ci-sonar@4.2.3 - component: $CI_SERVER_FQDN/to-be-continuous/sonar/gitlab-ci-sonar@4.2.3
# Vault variant # Vault variant
- component: gitlab.com/to-be-continuous/sonar/gitlab-ci-sonar-vault@4.2.3 - component: $CI_SERVER_FQDN/to-be-continuous/sonar/gitlab-ci-sonar-vault@4.2.3
inputs: inputs:
# audience claim for JWT # audience claim for JWT
vault-oidc-aud: "https://vault.acme.host" vault-oidc-aud: "https://vault.acme.host"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment