Skip to content

Commit

Permalink
feat!: build on arm64 by default
Browse files Browse the repository at this point in the history
arm64 containers are significantly cheaper to run on AWS.

Co-Authored-By: Rowan Manning <[email protected]>
  • Loading branch information
2 people authored and ivomurrell committed Jan 9, 2025
1 parent 81c052e commit ee7501f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions lib/schemas/src/plugins/docker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ const DockerImageSchema = z.object({
.describe('The path to the Dockerfile definition file for this image'),
platform: z
.string()
.default('linux/amd64')
.describe('The platform to target when building the Docker image, e.g. linux/amd64 or linux/arm64'),
.default('linux/arm64')
.describe('The platform to target when building the Docker image, e.g. linux/arm64 or linux/amd64'),
registry: z
.string()
.default('docker.packages.ft.com/cp-container-registry')
Expand Down
2 changes: 1 addition & 1 deletion plugins/docker/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ plugins:

| Property | Type |
| :---------------- | :-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **`images`** (\*) | _Object with dynamic keys of type_ `string` _and values of type_ _Object with properties:_<ul><li>`definition`: `string` - The path to the Dockerfile definition file for this image</li><li>`platform`: `string` - The platform to target when building the Docker image, e.g. linux/amd64 or linux/arm64</li><li>`registry`: `string` - The registry that the Docker image is pushed to, excluding name and tag</li><li>`name`: `string` (_regex: `/^[a-z][a-z-]+$/`_) - The name of the image, excluding a tag</li></ul> |
| **`images`** (\*) | _Object with dynamic keys of type_ `string` _and values of type_ _Object with properties:_<ul><li>`definition`: `string` - The path to the Dockerfile definition file for this image</li><li>`platform`: `string` - The platform to target when building the Docker image, e.g. linux/arm64 or linux/amd64</li><li>`registry`: `string` - The registry that the Docker image is pushed to, excluding name and tag</li><li>`name`: `string` (_regex: `/^[a-z][a-z-]+$/`_) - The name of the image, excluding a tag</li></ul> |

_(\*) Required._
<!-- end autogenerated docs -->

0 comments on commit ee7501f

Please sign in to comment.