mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-07-24 03:15:36 +00:00
do not try to build or push if no architectures are available
Signed-off-by: Avi Deitcher <avi@deitcher.net>
This commit is contained in:
parent
a8c4b174a3
commit
6cd8a874a6
@ -158,6 +158,14 @@ func pkgBuildPush(args []string, withPush bool) {
|
||||
pkgPlats = append(pkgPlats, imagespec.Platform{OS: "linux", Architecture: a})
|
||||
}
|
||||
}
|
||||
|
||||
// if there are no platforms to build for, do nothing.
|
||||
// note that this is *not* an error; we simply skip it
|
||||
if len(pkgPlats) == 0 {
|
||||
fmt.Printf("Skipping %s with no architectures to build\n", p.Tag())
|
||||
return
|
||||
}
|
||||
|
||||
pkgOpts = append(pkgOpts, pkglib.WithBuildPlatforms(pkgPlats...))
|
||||
|
||||
var msg, action string
|
||||
|
Loading…
Reference in New Issue
Block a user