Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(bake): allow pull of single saved bake target #4

Merged
merged 4 commits into from
Mar 4, 2024
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
goller marked this conversation as resolved.
Show resolved Hide resolved
Loading