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:
@@ -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"),
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user