- Notifications
You must be signed in to change notification settings - Fork116
Open
Description
We have a release system for container images where a script generates commits and git tags with new versions. Each image has its own build pipeline in the.tekton directory.
Sometimes, when multiple tags are pushed at the same time, none of the pipelines trigger. Removing the tags from GitHub and pushing them again one by one works.
The build annotations are configured so that each image has its own tag prefix and a wildcard match for the version number.
---apiVersion:tekton.dev/v1kind:PipelineRunmetadata:name:build-nginxannotations:pipelinesascode.tekton.dev/on-event:"[push]"pipelinesascode.tekton.dev/on-target-branch:"[refs/tags/nginx-*]"pipelinesascode.tekton.dev/max-keep-runs:"2"
The script creates commits and tags so that the Git history looks like this:
* 2c1834d (HEAD -> master, tag: ubi9-minimal-25.9.0, origin/master, origin/HEAD) chore: release ubi9-minimal 25.9.0* 8666a14 (tag: ubi9-25.9.1) chore: release ubi9 25.9.1* 748ee22 (tag: nodejs-20-25.9.1) chore: release nodejs-20 25.9.1* 8f656da (tag: nginx-25.9.1) chore: release nginx 25.9.1Then the updates are pushed to GitHub withgit push && git push --tags.
Environment:
- OpenShift 4.19
- OpenShift Pipelines 1.19.3
- GitHub Enterprise with GitHub App integration for Pipelines as Code
Metadata
Metadata
Assignees
Labels
No labels