+check
( ctx context.Context, // +optional tag string, )
| 438 | |
| 439 | // +check |
| 440 | func (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" |
no test coverage detected