1
0
mirror of https://github.com/siderolabs/kres.git synced 2026-02-05 09:45:35 +01:00

fix: upload .bundle files from cosign

Upload `.bundle` files from Cosign instead of `.sig`

Signed-off-by: Noel Georgi <git@frezbo.dev>
This commit is contained in:
Noel Georgi
2025-10-07 16:43:33 +05:30
parent e329305180
commit 97ccf82705
3 changed files with 5 additions and 5 deletions

View File

@@ -312,7 +312,7 @@ func (gh *GHWorkflow) CompileGitHubWorkflow(o *ghworkflow.Output) error {
jobDef.Steps = append(jobDef.Steps, signStep)
releaseStep.SetWith("files", strings.Join(artifacts, "\n")+"\n"+filepath.Join(step.ReleaseStep.BaseDirectory, "*.sig"))
releaseStep.SetWith("files", strings.Join(artifacts, "\n")+"\n"+filepath.Join(step.ReleaseStep.BaseDirectory, "*.bundle"))
}
if step.ReleaseStep.GenerateChecksums {
@@ -348,7 +348,7 @@ func (gh *GHWorkflow) CompileGitHubWorkflow(o *ghworkflow.Output) error {
strings.Join(artifacts, "\n")+
"\n"+
filepath.Join(step.ReleaseStep.BaseDirectory, "sha*.txt")+"\n"+
filepath.Join(step.ReleaseStep.BaseDirectory, "*.sig"),
filepath.Join(step.ReleaseStep.BaseDirectory, "*.bundle"),
)
}
}

View File

@@ -115,7 +115,7 @@ func (release *Release) CompileGitHubWorkflow(output *ghworkflow.Output) error {
steps = append(steps, cosignStep, signStep)
artifactsToUpload += "\n" + filepath.Join(release.meta.ArtifactsPath, "*.sig")
artifactsToUpload += "\n" + filepath.Join(release.meta.ArtifactsPath, "*.bundle")
}
releaseStep.SetWith("files", artifactsToUpload)