Merge pull request #68898 from nspin/pr/docker-image-cross
build-support/docker: set default image arch to host arch
This commit is contained in:
commit
b32fd0c093
@ -1,4 +1,5 @@
|
|||||||
{
|
{
|
||||||
|
buildPackages,
|
||||||
cacert,
|
cacert,
|
||||||
callPackage,
|
callPackage,
|
||||||
closureInfo,
|
closureInfo,
|
||||||
@ -47,7 +48,7 @@ rec {
|
|||||||
, imageDigest
|
, imageDigest
|
||||||
, sha256
|
, sha256
|
||||||
, os ? "linux"
|
, os ? "linux"
|
||||||
, arch ? "amd64"
|
, arch ? buildPackages.go.GOARCH
|
||||||
|
|
||||||
# This is used to set name to the pulled image
|
# This is used to set name to the pulled image
|
||||||
, finalImageName ? imageName
|
, finalImageName ? imageName
|
||||||
@ -540,7 +541,7 @@ rec {
|
|||||||
configJson = let
|
configJson = let
|
||||||
pure = writeText "${baseName}-config.json" (builtins.toJSON {
|
pure = writeText "${baseName}-config.json" (builtins.toJSON {
|
||||||
inherit created config;
|
inherit created config;
|
||||||
architecture = "amd64";
|
architecture = buildPackages.go.GOARCH;
|
||||||
os = "linux";
|
os = "linux";
|
||||||
});
|
});
|
||||||
impure = runCommand "${baseName}-standard-dynamic-date.json"
|
impure = runCommand "${baseName}-standard-dynamic-date.json"
|
||||||
@ -658,7 +659,7 @@ rec {
|
|||||||
baseJson = let
|
baseJson = let
|
||||||
pure = writeText "${baseName}-config.json" (builtins.toJSON {
|
pure = writeText "${baseName}-config.json" (builtins.toJSON {
|
||||||
inherit created config;
|
inherit created config;
|
||||||
architecture = "amd64";
|
architecture = buildPackages.go.GOARCH;
|
||||||
os = "linux";
|
os = "linux";
|
||||||
});
|
});
|
||||||
impure = runCommand "${baseName}-config.json"
|
impure = runCommand "${baseName}-config.json"
|
||||||
|
Loading…
Reference in New Issue
Block a user