Skip to content

Commit

Permalink
Add buildx-fallback input
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobwgillespie committed Aug 24, 2022
1 parent f0f83ae commit 3692e45
Show file tree
Hide file tree
Showing 5 changed files with 46 additions and 32 deletions.
9 changes: 5 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -97,10 +97,11 @@ This action needs a Depot API token to communicate with your project's builders.

### Depot-specific inputs

| Name | Type | Description |
| --------- | ------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| `project` | String | Depot [project](https://depot.dev/docs/core-concepts#projects) ID to route the image build to your projects builders (default: the `depot.json` file at the root of your repo) |
| `token` | String | You must authenticate with the Depot API to communicate with your projects builders ([see Authentication above](#authentication)) |
| Name | Type | Description |
| ----------------- | ------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `project` | String | Depot [project](https://depot.dev/docs/core-concepts#projects) ID to route the image build to your projects builders (default: the `depot.json` file at the root of your repo) |
| `token` | String | You must authenticate with the Depot API to communicate with your projects builders ([see Authentication above](#authentication)) |
| `buildx-fallback` | Boolean | If true, this action will fallback to using `docker buildx build` if `depot build` is unable to acquire a builder connection. This requires installing buildx with [`docker/setup-buildx-action`](https://github.com/docker/setup-buildx-action) (default: `false`) |

### General inputs

Expand Down
3 changes: 3 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ inputs:
build-contexts:
description: 'List of additional build contexts (e.g., name=path)'
required: false
buildx-fallback:
description: 'Fallback to `docker buildx build` if `depot build` fails'
required: false
cache-from:
description: 'List of external cache sources for buildx (e.g., user/app:cache, type=local,src=path/to/dir)'
required: false
Expand Down
Loading

0 comments on commit 3692e45

Please sign in to comment.