GeezerVison is showing github.com — Merge pull request #455 from crazy-max/install-deprecated · docker/setup-buildx-action@8d2750c
File tree
Expand file treeCollapse file tree
Open diff view settings
Expand file treeCollapse file tree
Open diff view settings
Collapse file
Copy file name to clipboardExpand all lines: .github/workflows/ci.yml -16Lines changed: 0 additions & 16 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -115,22 +115,6 @@ jobs: |
115 | 115 | context: . |
116 | 116 | platforms: linux/amd64,linux/arm64,linux/ppc64le |
117 | 117 |
|
118 | | - install: |
119 | | - runs-on: ubuntu-latest |
120 | | - steps: |
121 | | - - |
122 | | - name: Checkout |
123 | | - uses: actions/checkout@v6 |
124 | | - - |
125 | | - name: Set up Docker Buildx |
126 | | - uses: ./ |
127 | | - with: |
128 | | - install: true |
129 | | - - |
130 | | - name: Check cmd |
131 | | - run: | |
132 | | - docker build --help |
133 | | -
|
134 | 118 | use: |
135 | 119 | runs-on: ubuntu-latest |
136 | 120 | strategy: |
|
Collapse file
Copy file name to clipboardExpand all lines: README.md +9-1Lines changed: 9 additions & 1 deletion - Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|
@@ -94,7 +94,7 @@ The following inputs can be used as `step.with` keys: |
94 | 94 | | `buildkitd-flags` | String | | [BuildKit daemon flags](https://docs.docker.com/engine/reference/commandline/buildx_create/#buildkitd-flags) | |
95 | 95 | | `buildkitd-config` \* | String | | [BuildKit daemon config file](https://docs.docker.com/engine/reference/commandline/buildx_create/#config) | |
96 | 96 | | `buildkitd-config-inline` \* | String | | Same as `buildkitd-config` but inline | |
97 | | -| `install` | Bool | `false` | Sets up `docker build` command as an alias to `docker buildx` | |
| 97 | +| `install` \* | Bool | `false` | Sets up `docker build` command as an alias to `docker buildx` | |
98 | 98 | | `use` | Bool | `true` | Switch to this builder instance | |
99 | 99 | | `endpoint` | String | | [Optional address for docker socket](https://docs.docker.com/engine/reference/commandline/buildx_create/#description) or context from `docker context ls` | |
100 | 100 | | `platforms` | List/CSV | | Fixed [platforms](https://docs.docker.com/engine/reference/commandline/buildx_create/#platform) for current node. If not empty, values take priority over the detected ones | |
@@ -111,6 +111,14 @@ The following inputs can be used as `step.with` keys: |
111 | 111 | > [!NOTE] |
112 | 112 | > `buildkitd-config` and `buildkitd-config-inline` are mutually exclusive. |
113 | 113 |
|
| 114 | +> [!NOTE] |
| 115 | +> `install` input is deprecated and will be removed in a future release. This |
| 116 | +> input is not necessary when building with our actions like |
| 117 | +> `docker/build-push-action` or `docker/bake-action`. If you are still building |
| 118 | +> with the `docker build` command then you can set the `BUILDX_BUILDER` |
| 119 | +> environment variable, or you can just directly invoke the |
| 120 | +> `docker buildx build` command: https://github.com/docker/setup-buildx-action/pull/455 |
| 121 | + |
114 | 122 | ### outputs |
115 | 123 |
|
116 | 124 | The following outputs are available: |
|
Collapse file
Copy file name to clipboardExpand all lines: action.yml +6-5Lines changed: 6 additions & 5 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -26,10 +26,6 @@ inputs: |
26 | 26 | buildkitd-config-inline: |
27 | 27 | description: 'Inline BuildKit daemon config' |
28 | 28 | required: false |
29 | | - install: |
30 | | - description: 'Sets up docker build command as an alias to docker buildx build' |
31 | | - default: 'false' |
32 | | - required: false |
33 | 29 | use: |
34 | 30 | description: 'Switch to this builder instance' |
35 | 31 | default: 'true' |
@@ -58,7 +54,7 @@ inputs: |
58 | 54 | description: 'Cleanup temp files and remove builder at the end of a job' |
59 | 55 | default: 'true' |
60 | 56 | required: false |
61 | | - # TODO: remove deprecated config and config-inline inputs |
| 57 | + # TODO: remove deprecated config, config-inline and install inputs |
62 | 58 | config: |
63 | 59 | description: 'BuildKit daemon config file' |
64 | 60 | deprecationMessage: 'Use buildkitd-config instead' |
@@ -67,6 +63,11 @@ inputs: |
67 | 63 | description: 'Inline BuildKit daemon config' |
68 | 64 | deprecationMessage: 'Use buildkitd-config-inline instead' |
69 | 65 | required: false |
| 66 | + install: |
| 67 | + description: 'Sets up docker build command as an alias to docker buildx build' |
| 68 | + deprecationMessage: '"docker buildx install" command is deprecated and will be removed in a future release, use BUILDX_BUILDER environment variable instead' |
| 69 | + default: 'false' |
| 70 | + required: false |
70 | 71 |
|
71 | 72 | outputs: |
72 | 73 | name: |
|