You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
cosalib, ore: add ability to cross upload aarch64 AMIs
This adds the ability to specify an architecture to buildextend-aws
so that we can upload an aarch64 AMI even if we're on x86_64.
Also removes --board option from `ore aws upload` as that wasn't used
for anything useful any longer.
Copy file name to clipboardexpand all lines: mantle/cmd/ore/aws/upload.go
+7-7
Original file line number
Diff line number
Diff line change
@@ -50,7 +50,7 @@ After a successful run, the final line of output will be a line of JSON describi
50
50
uploadSourceObjectstring
51
51
uploadBucketstring
52
52
uploadImageNamestring
53
-
uploadBoardstring
53
+
uploadImageArchitecturestring
54
54
uploadFilestring
55
55
uploadDiskSizeGiBuint
56
56
uploadDiskSizeInspectbool
@@ -70,7 +70,7 @@ func init() {
70
70
cmdUpload.Flags().StringVar(&uploadSourceObject, "source-object", "", "'s3://' URI pointing to image data (default: same as upload)")
71
71
cmdUpload.Flags().StringVar(&uploadBucket, "bucket", "", "s3://bucket/prefix/ (defaults to a regional bucket and prefix defaults to $USER/board/name)")
72
72
cmdUpload.Flags().StringVar(&uploadImageName, "name", "", "name of uploaded image")
73
-
cmdUpload.Flags().StringVar(&uploadBoard, "board", "amd64-usr", "board used for naming with default prefix only")
73
+
cmdUpload.Flags().StringVar(&uploadImageArchitecture, "arch", "", "The target architecture for the AMI")
74
74
cmdUpload.Flags().StringVar(&uploadFile, "file", "", "path to CoreOS image")
75
75
cmdUpload.Flags().UintVarP(&uploadDiskSizeGiB, "disk-size-gib", "", aws.ContainerLinuxDiskSizeGiB, "AMI disk size in GiB")
76
76
cmdUpload.Flags().BoolVar(&uploadDiskSizeInspect, "disk-size-inspect", false, "set AMI disk size to size of local file")
0 commit comments