Skip to content

Commit 57a5fb2

Browse files
Merge branch 'main' into zb/annotations
2 parents 06fcbb7 + 3ebc0d4 commit 57a5fb2

File tree

5 files changed

+36
-88
lines changed

5 files changed

+36
-88
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,8 @@ This action needs a Depot API token to communicate with your project's builders.
112112
| `lint` | Boolean | Lint dockerfiles and fail build if any issues are of `error` severity. (default `false`) |
113113
| `lint-fail-on` | String | Severity of linter issue to cause the build to fail. (`error`, `warn`, `info`, `none`) |
114114
| `save` | Boolean | Save the image to the Depot Registry (for use with the [depot/pull-action](https://github.com/depot/pull-action)) |
115-
| `save-tag` | Boolean | Tag your image in the Depot Registry |
115+
| `save-tag` | String | Tag your image in the Depot Registry |
116+
| `save-tags` | List | Tags for your image in the Depot Registry |
116117

117118
### General inputs
118119

action.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,9 @@ inputs:
104104
save-tag:
105105
description: 'Tag your image in the Depot Registry'
106106
required: false
107+
save-tags:
108+
description: 'Tags for your image in the Depot Registry'
109+
required: false
107110
sbom:
108111
description: 'Generate SBOM attestation for the build (shorthand for --attest=type=sbom)'
109112
required: false

dist/index.js

Lines changed: 27 additions & 86 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/context.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ export interface Inputs {
3636
push: boolean
3737
save: boolean
3838
saveTag: string
39+
saveTags: string[]
3940
sbom: string
4041
sbomDir: string
4142
secretFiles: string[]
@@ -80,6 +81,7 @@ export function getInputs(): Inputs {
8081
push: core.getBooleanInput('push'),
8182
save: core.getBooleanInput('save'),
8283
saveTag: core.getInput('save-tag'),
84+
saveTags: getListInput('save-tags'),
8385
sbom: core.getInput('sbom'),
8486
sbomDir: core.getInput('sbom-dir'),
8587
secretFiles: getListInput('secret-files', {ignoreComma: true}),

src/depot.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,8 @@ export async function build(inputs: Inputs) {
125125
...flag('--lint', inputs.lint),
126126
...flag('--lint-fail-on', inputs.lintFailOn),
127127
...flag('--save', inputs.save),
128-
...flag('--save-tag', inputs.saveTag)
128+
...flag('--save-tag', inputs.saveTag),
129+
...flag('--save-tag', inputs.saveTags),
129130
]
130131

131132
const args = [...buildxArgs, ...depotArgs]

0 commit comments

Comments
 (0)