Re-structure CI pipeline #227
Closed
paullatzelsperger
started this conversation in
Ideas
Replies: 1 comment 1 reply
-
will be implemented in Issue #229 |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
WHAT
This proposal is about re-structuring our CI pipelines as shown below to avoid spurious builds. Note that this merely deals with the test workflows (
verify.yaml
,deployment-test.yaml
andbusiness-tests.yaml
) as well as the image- and package build (build.yaml
).We should restructure, such that every test stage triggers the subsequent one, and the last test stage triggers the build and publish.
WHY
CI workflows have a natural dependency onto one another, i.e. we should not publish Docker images or Maven packages unless all tests are green.
SOLUTION PROPOSAL
build.yaml
->publish.yaml
build-extensions
step, this is already covered by theunit-test
job inverify.yaml
verify.yaml
,deployment-test.yaml
andbusiness-tests.yaml
flows to run in parallel.publish.yaml
flow once all tests are greenpublish.yaml
triggerstrivy.yaml
(same as now, no change)publish.yaml
from running on PRs and in forks (check via secrets presence)FURTHER NOTES
Beta Was this translation helpful? Give feedback.
All reactions