Skip to content

Commit

Permalink
Merge pull request #4 from depot/feat/bake-target
Browse files Browse the repository at this point in the history
feat(bake): allow pull of single saved bake target
  • Loading branch information
goller authored Mar 4, 2024
2 parents 669838d + 7ef3b6c commit 5325b5e
Show file tree
Hide file tree
Showing 5 changed files with 770 additions and 342 deletions.
19 changes: 19 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,32 @@ jobs:
org/repo:tag
```
Pull bake image targets:
```yaml
jobs:
job-name:
steps:
- uses: depot/setup-action@v1
- uses: depot/bake-action@v1
with:
save: true
- uses: depot/pull-action@v1
with:
build-id: ${{ steps.build.outputs.build-id }}
target: your-target
tags: |
org/repo:tag
```
## Inputs
| Name | Type | Required | Description |
| ---------- | -------- | -------- | ---------------------------------------------------------------------------------------------------------- |
| `build-id` | string | **yes** | The build ID to pull images for. |
| `platform` | string | no | The image platform to pull (defaults to the current platform). |
| `tags` | list/CSV | no | A list of tags to apply to the pulled image. |
| `target` | string | no | For a bake build specifies the specific target to pull. |
| `token` | string | no | The API token to use for authentication. This can be overridden by the `DEPOT_TOKEN` environment variable. |

## License
Expand Down
4 changes: 4 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,7 @@ inputs:
description: If set, will populate the `DEPOT_TOKEN` environment variable.
default: ''
required: false
target:
description: Specific bake target to pull.
default: 'false'
required: false
Loading

0 comments on commit 5325b5e

Please sign in to comment.