Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Python
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
SmartDataLab
public
CI-CD components
Python
Commits
06b1d08b
Commit
06b1d08b
authored
11 months ago
by
Benguria Elguezabal, Gorka
Browse files
Options
Downloads
Plain Diff
Merge remote-tracking branch 'upstream/master'
# Conflicts: # .gitlab-ci.yml
parents
182fa944
0f85384a
Branches
Branches containing commit
No related tags found
No related merge requests found
Pipeline
#157483
passed
11 months ago
Stage: .pre
Stage: build
Stage: test
Stage: publish
Changes
2
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
.gitlab-ci.yml
+17
-11
17 additions, 11 deletions
.gitlab-ci.yml
README.md
+8
-8
8 additions, 8 deletions
README.md
with
25 additions
and
19 deletions
.gitlab-ci.yml
+
17
−
11
View file @
06b1d08b
# 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
:
-
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
:
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
:
check-links-job-tags
:
[
"
docker"
]
tbc-check-job-tags
:
[
"
docker"
]
tbc-check-image
:
cicd-docker-dev.artifact.tecnalia.com/tbc-check:master
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
:
kicker-validation-job-tags
:
[
"
docker"
]
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
-
component
:
$CI_SERVER_FQDN/$TBC_NAMESPACE
/bash/gitlab-ci-bash@master
inputs
:
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
:
semantic-release-job-tags
:
[
"
docker"
]
-
component
:
git.code.tecnalia.com/smartdatalab/public/ci-cd-components
/gitleaks/gitlab-ci-gitleaks@master
-
component
:
$CI_SERVER_FQDN/$TBC_NAMESPACE
/gitleaks/gitlab-ci-gitleaks@master
inputs
:
gitleaks-job-tags
:
[
"
docker"
]
variables
:
GITLAB_CI_FILES
:
"
templates/gitlab-ci-python.yml"
GIT_STRATEGY
:
clone
stages
:
-
build
-
test
-
publish
variables
:
GITLAB_CI_FILES
:
"
templates/gitlab-ci-python.yml"
BASH_SHELLCHECK_FILES
:
"
*.sh"
GIT_STRATEGY
:
clone
semantic-release
:
rules
:
# on production branch(es): auto if SEMREL_AUTO_RELEASE_ENABLED
...
...
This diff is collapsed.
Click to expand it.
README.md
+
8
−
8
View file @
06b1d08b
...
...
@@ -4,17 +4,17 @@ This project implements a GitLab CI/CD template to build, test and analyse your
## 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
)
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
Add the following to your
`gitlab-ci.yml`
:
Add the following to your
`
.
gitlab-ci.yml`
:
```
yaml
include
:
# 1: include the component
-
component
:
gitlab.com
/to-be-continuous/python/gitlab-ci-python@7.0.2
-
component
:
$CI_SERVER_FQDN
/to-be-continuous/python/gitlab-ci-python@7.0.2
# 2: set/override component inputs
inputs
:
image
:
registry.hub.docker.com/library/python:3.12-slim
...
...
@@ -23,7 +23,7 @@ include:
### Use as a CI/CD template (legacy)
Add the following to your
`gitlab-ci.yml`
:
Add the following to your
`
.
gitlab-ci.yml`
:
```
yaml
include
:
...
...
@@ -537,9 +537,9 @@ With:
```
yaml
include
:
# main component
-
component
:
gitlab.com
/to-be-continuous/python/gitlab-ci-python@7.0.2
-
component
:
$CI_SERVER_FQDN
/to-be-continuous/python/gitlab-ci-python@7.0.2
# Vault variant
-
component
:
gitlab.com
/to-be-continuous/python/gitlab-ci-python-vault@7.0.2
-
component
:
$CI_SERVER_FQDN
/to-be-continuous/python/gitlab-ci-python-vault@7.0.2
inputs
:
vault-base-url
:
"
https://vault.acme.host/v1"
# audience claim for JWT
...
...
@@ -579,13 +579,13 @@ The variant requires the additional configuration parameters:
```
yaml
include
:
-
component
:
gitlab.com
/to-be-continuous/python/gitlab-ci-python@7.0.2
-
component
:
$CI_SERVER_FQDN
/to-be-continuous/python/gitlab-ci-python@7.0.2
# 2: set/override component inputs
inputs
:
image
:
registry.hub.docker.com/library/python:3.12-slim
pytest-enabled
:
true
-
component
:
gitlab.com
/to-be-continuous/python/gitlab-ci-python-gcp@7.0.2
-
component
:
$CI_SERVER_FQDN
/to-be-continuous/python/gitlab-ci-python-gcp@7.0.2
inputs
:
# common OIDC config for non-prod envs
gcp-oidc-provider
:
"
projects/<gcp_nonprod_proj_id>/locations/global/workloadIdentityPools/<pool_id>/providers/<provider_id>"
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment