Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
python-cicd-components
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
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
IST
Gitlab
python-cicd-components
Commits
1deec1d8
Verified
Commit
1deec1d8
authored
1 year ago
by
Dan Thomson
Browse files
Options
Downloads
Patches
Plain Diff
Reduce to only doing a release job for now
parent
446d538c
No related branches found
Tags
v0
1 merge request
!1
Resolve "Get the pytest component working"
Pipeline
#152024
passed
1 year ago
Stage: release
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+0
-22
0 additions, 22 deletions
.gitlab-ci.yml
with
0 additions
and
22 deletions
.gitlab-ci.yml
+
0
−
22
View file @
1deec1d8
---
include
:
# include the component located in the current project from the current SHA
-
component
:
$CI_SERVER_HOST/$CI_PROJECT_PATH/$CI_PROJECT_NAMEt@$CI_COMMIT_SHA
inputs
:
stage
:
build
stages
:
-
build
-
test
-
release
# Expect `component-job` is added.
# This example tests that the included component works as expected.
# You can inspect data generated by the component, use GitLab API endpoints or third-party tools.
ensure-job-added
:
stage
:
test
image
:
badouralix/curl-jq
script
:
-
|
route="$CI_API_V4_URL/projects/$CI_PROJECT_ID/pipelines/$CI_PIPELINE_ID/jobs"
count=`curl --silent --header "Private-Token: $CI_JOB_TOKEN" $route | jq 'map(select(.name | contains("component-job"))) | length'`
if [ "$count" != "1" ]; then
exit 1
fi
# If we are tagging a release with a specific convention ("v" + number) and all
# previous checks succeeded, we proceed with creating a release automatically.
create-release
:
...
...
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