-
Notifications
You must be signed in to change notification settings - Fork 79
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- add cacheToLatest opt - add help description
- Loading branch information
Roy Razon
committed
Nov 12, 2023
1 parent
ce0ca71
commit 4090a60
Showing
4 changed files
with
26 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,10 @@ | ||
import z from 'zod' | ||
|
||
export const splitBuildSpecSchema = z.object({ | ||
registry: z.string(), | ||
platform: z.string().optional(), | ||
ecrFormat: z.boolean().optional(), | ||
export const localBuildSpecSchema = z.object({ | ||
registry: z.string().describe('registry to use'), | ||
platform: z.string().optional().describe('platform to build for (default: driver platform)'), | ||
ecrFormat: z.boolean().optional().describe('use ECR format (default: auto detect)'), | ||
cacheToLatest: z.boolean().default(false).describe('enable cache-to with latest tag (default: false)'), | ||
}) | ||
|
||
export type SplitBuildSpec = z.infer<typeof splitBuildSpecSchema> | ||
export type LocalBuildSpec = z.infer<typeof localBuildSpecSchema> |