Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions extras/dagger/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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).
Expand Down
Loading