MCPcopy Create free account
hub / github.com/dagger/dagger / ReleaseDryRun

Method ReleaseDryRun

toolchains/engine-dev/main.go:440–459  ·  view source on GitHub ↗

+check

(
	ctx context.Context,
	// +optional
	tag string,
)

Source from the content-addressed store, hash-verified

438
439// +check
440func (dev *EngineDev) ReleaseDryRun(
441 ctx context.Context,
442 // +optional
443 tag string,
444) ([]*dagger.Container, error) {
445 tags := []string{"main"}
446 if semver.IsValid(tag) {
447 tags = []string{tag}
448 }
449
450 targetResults, err := dev.buildTargets(
451 ctx,
452 // FIXME: why not from HEAD like the SDKs?
453 tags,
454 )
455 if err != nil {
456 return nil, err
457 }
458 return flattenTargetPlatforms(targetResults), nil
459}
460
461// Publish all engine images to a registry
462// +cache="session"

Callers 1

invokeFunction · 0.45

Calls 2

buildTargetsMethod · 0.95
flattenTargetPlatformsFunction · 0.85

Tested by

no test coverage detected