mirror of
https://gitea.com/gitea/runner.git
synced 2026-11-09 08:40:29 +00:00
Fixes (#856)
* fix: avoid triggering %!/(MISSING) for docker output * fix: suppress --platform for empty platform Co-authored-by: Josh Soref <[email protected]>
This commit is contained in:
1 parent
aad724c87a
commit
7c73531008
2 files changed
+6
-2
No files matched your search
@@ -29,7 +29,11 @@ type NewDockerBuildExecutorInput struct {
|
||||
func NewDockerBuildExecutor(input NewDockerBuildExecutorInput) common.Executor {
|
||||
return func(ctx context.Context) error {
|
||||
logger := common.Logger(ctx)
|
||||
logger.Infof("%sdocker build -t %s --platform %s %s", logPrefix, input.ImageTag, input.Platform, input.ContextDir)
|
||||
if input.Platform != "" {
|
||||
logger.Infof("%sdocker build -t %s --platform %s %s", logPrefix, input.ImageTag, input.Platform, input.ContextDir)
|
||||
} else {
|
||||
logger.Infof("%sdocker build -t %s %s", logPrefix, input.ImageTag, input.ContextDir)
|
||||
}
|
||||
if common.Dryrun(ctx) {
|
||||
return nil
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user