Skip to content

Commit 5325b5e

Browse files
authored
Merge pull request #4 from depot/feat/bake-target
feat(bake): allow pull of single saved bake target
2 parents 669838d + 7ef3b6c commit 5325b5e

File tree

5 files changed

+770
-342
lines changed

5 files changed

+770
-342
lines changed

Diff for: README.md

+19
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,32 @@ jobs:
2222
org/repo:tag
2323
```
2424
25+
Pull bake image targets:
26+
27+
```yaml
28+
jobs:
29+
job-name:
30+
steps:
31+
- uses: depot/setup-action@v1
32+
- uses: depot/bake-action@v1
33+
with:
34+
save: true
35+
- uses: depot/pull-action@v1
36+
with:
37+
build-id: ${{ steps.build.outputs.build-id }}
38+
target: your-target
39+
tags: |
40+
org/repo:tag
41+
```
42+
2543
## Inputs
2644
2745
| Name | Type | Required | Description |
2846
| ---------- | -------- | -------- | ---------------------------------------------------------------------------------------------------------- |
2947
| `build-id` | string | **yes** | The build ID to pull images for. |
3048
| `platform` | string | no | The image platform to pull (defaults to the current platform). |
3149
| `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. |
3251
| `token` | string | no | The API token to use for authentication. This can be overridden by the `DEPOT_TOKEN` environment variable. |
3352

3453
## License

Diff for: action.yml

+4
Original file line numberDiff line numberDiff line change
@@ -21,3 +21,7 @@ inputs:
2121
description: If set, will populate the `DEPOT_TOKEN` environment variable.
2222
default: ''
2323
required: false
24+
target:
25+
description: Specific bake target to pull.
26+
default: 'false'
27+
required: false

0 commit comments

Comments
 (0)