Răsfoiți Sursa

!20 增加配置:每次构建docker镜像时,可同时构建arm64镜像
* 增加配置:每次构建docker镜像时,可同时构建arm64镜像

tzk007 1 an în urmă
părinte
comite
180b25d824

+ 10 - 0
maxkey-webs/maxkey-web-maxkey/config/build_docker.gradle

@@ -18,6 +18,16 @@ description = "maxkey-web-maxkey"
 jib {
 	from {
 		image = "${jibFromImage}"
+		platforms {
+			platform {
+				architecture = 'amd64'
+				os = 'linux'
+			}
+			platform {
+				architecture = 'arm64'
+				os = 'linux'
+			}
+		}
 	}
 	to {
 		//https://registry.hub.docker.com/repository/docker/maxkeytop/maxkey

+ 10 - 0
maxkey-webs/maxkey-web-mgt/config/build_docker.gradle

@@ -18,6 +18,16 @@ description = "maxkey-web-mgt"
 jib {
 	from {
 		image = "${jibFromImage}"
+		platforms {
+			platform {
+				architecture = 'amd64'
+				os = 'linux'
+			}
+			platform {
+				architecture = 'arm64'
+				os = 'linux'
+			}
+		}
 	}
 	to {
 		//https://registry.hub.docker.com/repository/docker/maxkeytop/maxkey-mgt

+ 10 - 0
maxkey-webs/maxkey-web-openapi/config/build_docker.gradle

@@ -18,6 +18,16 @@ description = "maxkey-web-openapi"
 jib {
 	from {
 		image = "${jibFromImage}"
+		platforms {
+			platform {
+				architecture = 'amd64'
+				os = 'linux'
+			}
+			platform {
+				architecture = 'arm64'
+				os = 'linux'
+			}
+		}
 	}
 	to {
 		//https://registry.hub.docker.com/repository/docker/maxkeytop/maxkey-openapi