We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 6f9796e + b64c665 commit 775221aCopy full SHA for 775221a
README.md
@@ -91,6 +91,7 @@ This action needs a Depot API token to communicate with your project's builders.
91
| `lint` | Bool | Lint dockerfiles and fail build if any issues are of `error` severity. (default `false`) |
92
| `lint-fail-on` | String | Severity of linter issue to cause the build to fail. (`error`, `warn`, `info`, `none`) |
93
| `save` | Boolean | Save the image to the Depot ephemeral registry (for use with the [depot/pull-action](https://github.com/depot/pull-action)) |
94
+| `save-tag` | String | Additional custom tag for the saved image, use with --save |
95
96
### General inputs
97
action.yml
@@ -52,6 +52,9 @@ inputs:
52
description: 'Save the image to the Depot ephemeral registry'
53
required: false
54
default: 'false'
55
+ save-tag:
56
+ description: 'Additional custom tag for the saved image, use with --save'
57
+ required: false
58
sbom:
59
description: 'SBOM is a shorthand for --set=*.attest=type=sbom'
60
dist/index.js
@@ -119788,6 +119788,7 @@ function getInputs() {
119788
provenance: getProvenanceInput(),
119789
push: core.getBooleanInput("push"),
119790
save: core.getBooleanInput("save"),
119791
+ saveTag: core.getInput("save-tag"),
119792
sbom: core.getInput("sbom"),
119793
sbomDir: core.getInput("sbom-dir"),
119794
set: import_util.Util.getInputList("set", { ignoreComma: true, quote: false }),
@@ -121532,7 +121533,8 @@ async function bake(inputs) {
121532
121533
...flag("--build-platform", inputs.buildPlatform),
121534
...flag("--lint", inputs.lint),
121535
...flag("--lint-fail-on", inputs.lintFailOn),
- ...flag("--save", inputs.save)
121536
+ ...flag("--save", inputs.save),
121537
+ ...flag("--save-tag", inputs.saveTag)
121538
];
121539
const args = [...bakeArgs, ...depotArgs, ...targets];
121540
let token = inputs.token ?? process.env.DEPOT_TOKEN;
src/context.ts
@@ -18,6 +18,7 @@ export interface Inputs {
18
provenance: string
19
push: boolean
20
save: boolean
21
+ saveTag?: string
22
sbom: string
23
sbomDir: string
24
set: string[]
@@ -41,6 +42,7 @@ export function getInputs(): Inputs {
41
42
43
push: core.getBooleanInput('push'),
44
save: core.getBooleanInput('save'),
45
+ saveTag: core.getInput('save-tag'),
46
sbom: core.getInput('sbom'),
47
sbomDir: core.getInput('sbom-dir'),
48
set: Util.getInputList('set', {ignoreComma: true, quote: false}),
src/depot.ts
@@ -109,6 +109,7 @@ export async function bake(inputs: Inputs) {
109
...flag('--lint', inputs.lint),
110
...flag('--lint-fail-on', inputs.lintFailOn),
111
...flag('--save', inputs.save),
112
+ ...flag('--save-tag', inputs.saveTag)
113
]
114
const args = [...bakeArgs, ...depotArgs, ...targets]
115
0 commit comments