diff --git a/extras/dagger/main.go b/extras/dagger/main.go index 639ada919..795dd1e94 100644 --- a/extras/dagger/main.go +++ b/extras/dagger/main.go @@ -156,6 +156,10 @@ func (m *Chainloop) Init( // mark the version as release // +optional release bool, + // Explicitly mark the project version as latest (use =false to skip promotion). + // When unset, the server decides automatically (defaults to latest for new versions). + // +optional + markLatest *bool, // Github event file for PR detection (when running in Github Actions) // +optional githubEventFile *dagger.File, @@ -283,6 +287,10 @@ func (m *Chainloop) Init( ) } + if markLatest != nil { + args = append(args, fmt.Sprintf("--mark-latest=%t", *markLatest)) + } + info, err := att. Container(0). WithExec(args, execOpts).