File tree 5 files changed +9
-13
lines changed
5 files changed +9
-13
lines changed Original file line number Diff line number Diff line change 22
22
org/repo:tag
23
23
` ` `
24
24
25
- Pull bake image targets:
25
+ Pull all bake image targets:
26
26
27
27
` ` ` yaml
28
28
jobs :
35
35
- uses : depot/pull-action@v1
36
36
with :
37
37
build-id : ${{ steps.build.outputs.build-id }}
38
- target : your-target
39
- tags : |
40
- org/repo:tag
41
38
` ` `
42
39
43
40
## Inputs
47
44
| ` build-id` | string | **yes** | The build ID to pull images for. |
48
45
| `platform` | string | no | The image platform to pull (defaults to the current platform). |
49
46
| `tags` | list/CSV | no | A list of tags to apply to the pulled image. |
50
- | `target ` | string | no | For a bake build specifies the specific target to pull. |
47
+ | `targets ` | list/CSV | no | Only pull specific bake targets rather than all. |
51
48
| `token` | string | no | The API token to use for authentication. This can be overridden by the `DEPOT_TOKEN` environment variable. |
52
49
53
50
# # License
Original file line number Diff line number Diff line change @@ -21,7 +21,6 @@ inputs:
21
21
description : If set, will populate the `DEPOT_TOKEN` environment variable.
22
22
default : ' '
23
23
required : false
24
- target :
25
- description : Specific bake target to pull.
26
- default : ' '
24
+ targets :
25
+ description : Pull specific bake targets rather than all.
27
26
required : false
Original file line number Diff line number Diff line change @@ -30521,7 +30521,7 @@ function getInputs() {
30521
30521
buildID: core.getInput("build-id"),
30522
30522
platform: core.getInput("platform"),
30523
30523
tags: parseCSV(core.getInput("tags")),
30524
- target: core.getInput("target" ),
30524
+ targets: parseCSV( core.getInput("targets") ),
30525
30525
token: core.getInput("token") || process.env.DEPOT_TOKEN
30526
30526
};
30527
30527
}
@@ -32160,7 +32160,7 @@ async function pull(inputs) {
32160
32160
const args = [
32161
32161
...flag("--platform", inputs.platform),
32162
32162
...flag("--tag", inputs.tags),
32163
- ...flag("--target", inputs.target )
32163
+ ...flag("--target", inputs.targets )
32164
32164
];
32165
32165
let token = inputs.token ?? process.env.DEPOT_TOKEN;
32166
32166
const isOSSPullRequest = !token && github.context.eventName === "pull_request" && github.context.payload.repository?.private === false && github.context.payload.pull_request && github.context.payload.pull_request.head?.repo?.full_name !== github.context.payload.repository?.full_name;
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ export interface Inputs {
5
5
buildID : string
6
6
platform ?: string
7
7
tags : string [ ]
8
- target ? : string
8
+ targets : string [ ]
9
9
token ?: string
10
10
}
11
11
@@ -14,7 +14,7 @@ export function getInputs(): Inputs {
14
14
buildID : core . getInput ( 'build-id' ) ,
15
15
platform : core . getInput ( 'platform' ) ,
16
16
tags : parseCSV ( core . getInput ( 'tags' ) ) ,
17
- target : core . getInput ( 'target' ) ,
17
+ targets : parseCSV ( core . getInput ( 'targets' ) ) ,
18
18
token : core . getInput ( 'token' ) || process . env . DEPOT_TOKEN ,
19
19
}
20
20
}
Original file line number Diff line number Diff line change @@ -49,7 +49,7 @@ export async function pull(inputs: Inputs) {
49
49
const args = [
50
50
...flag ( '--platform' , inputs . platform ) ,
51
51
...flag ( '--tag' , inputs . tags ) ,
52
- ...flag ( '--target' , inputs . target ) ,
52
+ ...flag ( '--target' , inputs . targets ) ,
53
53
]
54
54
55
55
let token = inputs . token ?? process . env . DEPOT_TOKEN
You can’t perform that action at this time.
0 commit comments