We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9bcb019 commit 8331435Copy full SHA for 8331435
1 file changed
extras/dagger/main.go
@@ -156,6 +156,10 @@ func (m *Chainloop) Init(
156
// mark the version as release
157
// +optional
158
release bool,
159
+ // Explicitly mark the project version as latest (use =false to skip promotion).
160
+ // When unset, the server decides automatically (defaults to latest for new versions).
161
+ // +optional
162
+ markLatest *bool,
163
// Github event file for PR detection (when running in Github Actions)
164
165
githubEventFile *dagger.File,
@@ -283,6 +287,10 @@ func (m *Chainloop) Init(
283
287
)
284
288
}
285
289
290
+ if markLatest != nil {
291
+ args = append(args, fmt.Sprintf("--mark-latest=%t", *markLatest))
292
+ }
293
+
286
294
info, err := att.
295
Container(0).
296
WithExec(args, execOpts).
0 commit comments