Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add alternative GitHub Workflows #11

Merged
merged 2 commits into from
Jul 26, 2024
Merged

Add alternative GitHub Workflows #11

merged 2 commits into from
Jul 26, 2024

Conversation

CodingDepot
Copy link
Owner

This PR adds GitHub workflow files to be used as an alternative to some Tekton Pipelines.
The following two Workflows are added:

  • local-analysis: matches the analysis-pipeline in Tekton, which creates both the coverage data and the local spotbugs analysis results and pushes them to Codacy
  • release: matches the release-pipeline in Tekton, which builds a Docker image and creates a SLSA attestation to verify the artifacts later

It is advised to enable either the GitHub workflows or the Tekton pipelines to prevent doubling the work done. The other Tekton pipelines can continue to be used considering the following:

  • codacy-pipeline: the pipeline that checks new PRs against Codacy Quality gates can continue to be used. However, as Codacy pushes its provider integrations more and more, this functionality could now be better fine-tuned using integrations in teh Codacy dashboard
  • deploy-pipeline: this pipeline triggers when a new image is published in DockerHub, checks the attestation of the image and updates the Kubernetes deployment to use the new version.

In order to enable or disable any Tekton Pipelines, it is advised to just delete the respective triggers that trigger the pipeline run from the GitHub webhook.

@CodingDepot CodingDepot self-assigned this Jul 26, 2024
Copy link

Coverage summary from Codacy

See diff coverage on Codacy

Coverage variation Diff coverage
+0.00% (target: -1.00%)
Coverage variation details
Coverable lines Covered lines Coverage
Common ancestor commit (f11d9bb) 43 12 27.91%
Head commit (f5e0daa) 43 (+0) 12 (+0) 27.91% (+0.00%)

Coverage variation is the difference between the coverage for the head and common ancestor commits of the pull request branch: <coverage of head commit> - <coverage of common ancestor commit>

Diff coverage details
Coverable lines Covered lines Diff coverage
Pull request (#11) 0 0 ∅ (not applicable)

Diff coverage is the percentage of lines that are covered by tests out of the coverable lines that the pull request added or modified: <covered lines added or modified>/<coverable lines added or modified> * 100%

See your quality gate settings    Change summary preferences


🚀 Don’t miss a bit, follow what’s new on Codacy.

Codacy stopped sending the deprecated coverage status on June 5th, 2024. Learn more

@CodingDepot CodingDepot marked this pull request as ready for review July 26, 2024 12:55
@CodingDepot CodingDepot merged commit 01e4fe5 into main Jul 26, 2024
4 checks passed
@CodingDepot CodingDepot deleted the github-actions branch July 26, 2024 12:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant