Compare commits
	
		
			14 Commits
		
	
	
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
|   | d70bba72b1 | ||
|   | 7638634cb7 | ||
|   | c68420fe0b | ||
|   | 2b51285047 | ||
|   | 0f00370563 | ||
| ![dependabot[bot]](/assets/img/avatar_default.png)  | 11c9683db9 | ||
|   | 56a16b8f2a | ||
|   | c23f46eb91 | ||
|   | f876da6242 | ||
|   | b7cf918227 | ||
|   | 0150f0ed7a | ||
|   | d89f1f9116 | ||
|   | 12d65f6595 | ||
| ![dependabot[bot]](/assets/img/avatar_default.png)  | 8e1cfa56de | 
							
								
								
									
										6
									
								
								.github/workflows/ci.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										6
									
								
								.github/workflows/ci.yml
									
									
									
									
										vendored
									
									
								
							| @@ -251,7 +251,7 @@ jobs: | ||||
|         uses: ./ | ||||
|         with: | ||||
|           buildkitd-flags: --debug | ||||
|           config: /tmp/buildkitd.toml | ||||
|           buildkitd-config: /tmp/buildkitd.toml | ||||
|       - | ||||
|         name: Build | ||||
|         uses: docker/build-push-action@v5 | ||||
| @@ -275,7 +275,7 @@ jobs: | ||||
|         uses: ./ | ||||
|         with: | ||||
|           buildkitd-flags: --debug | ||||
|           config-inline: | | ||||
|           buildkitd-config-inline: | | ||||
|             debug = true | ||||
|             [registry."docker.io"] | ||||
|               mirrors = ["mirror.gcr.io"] | ||||
| @@ -564,7 +564,7 @@ jobs: | ||||
|         with: | ||||
|           context: . | ||||
|  | ||||
|   cacheBinary: | ||||
|   cache-binary: | ||||
|     runs-on: ubuntu-latest | ||||
|     strategy: | ||||
|       fail-fast: false | ||||
|   | ||||
							
								
								
									
										12
									
								
								README.md
									
									
									
									
									
								
							
							
						
						
									
										12
									
								
								README.md
									
									
									
									
									
								
							| @@ -86,22 +86,22 @@ The following inputs can be used as `step.with` keys: | ||||
| > ``` | ||||
|  | ||||
| | Name                         | Type     | Default            | Description                                                                                                                                                                  | | ||||
| |-------------------|----------|--------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | ||||
| |------------------------------|----------|--------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | ||||
| | `version`                    | String   |                    | [Buildx](https://github.com/docker/buildx) version. (eg. `v0.3.0`, `latest`, `https://github.com/docker/buildx.git#master`)                                                  | | ||||
| | `driver`                     | String   | `docker-container` | Sets the [builder driver](https://docs.docker.com/engine/reference/commandline/buildx_create/#driver) to be used                                                             | | ||||
| | `driver-opts`                | List     |                    | List of additional [driver-specific options](https://docs.docker.com/engine/reference/commandline/buildx_create/#driver-opt) (eg. `image=moby/buildkit:master`)              | | ||||
| | `buildkitd-flags` | String   |                    | [Flags for buildkitd](https://docs.docker.com/engine/reference/commandline/buildx_create/#buildkitd-flags) daemon                                                            | | ||||
| | `buildkitd-flags`            | String   |                    | [BuildKit daemon flags](https://docs.docker.com/engine/reference/commandline/buildx_create/#buildkitd-flags)                                                                 | | ||||
| | `buildkitd-config` \*        | String   |                    | [BuildKit daemon config file](https://docs.docker.com/engine/reference/commandline/buildx_create/#config)                                                                    | | ||||
| | `buildkitd-config-inline` \* | String   |                    | Same as `buildkitd-config` but inline                                                                                                                                        | | ||||
| | `install`                    | Bool     | `false`            | Sets up `docker build` command as an alias to `docker buildx`                                                                                                                | | ||||
| | `use`                        | Bool     | `true`             | Switch to this builder instance                                                                                                                                              | | ||||
| | `endpoint`                   | String   |                    | [Optional address for docker socket](https://docs.docker.com/engine/reference/commandline/buildx_create/#description) or context from `docker context ls`                    | | ||||
| | `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. | | ||||
| | `config`¹         | String   |                    | [BuildKit config file](https://docs.docker.com/engine/reference/commandline/buildx_create/#config)                                                                           | | ||||
| | `config-inline`¹  | String   |                    | Same as `config` but inline                                                                                                                                                  | | ||||
| | `append`          | YAML     |                    | [Append additional nodes](docs/advanced/append-nodes.md) to the builder                                                                                                      | | ||||
| | `append`                     | YAML     |                    | [Append additional nodes](https://docs.docker.com/build/ci/github-actions/configure-builder/#append-additional-nodes-to-the-builder) to the builder                          | | ||||
| | `cache-binary`               | Bool     | `true`             | Cache buildx binary to GitHub Actions cache backend                                                                                                                          | | ||||
| | `cleanup`                    | Bool     | `true`             | Cleanup temp files and remove builder at the end of a job                                                                                                                    | | ||||
|  | ||||
| > * ¹ `config` and `config-inline` are mutually exclusive | ||||
| _\* `buildkitd-config` and `buildkitd-config-inline` are mutually exclusive_ | ||||
|  | ||||
| ### outputs | ||||
|  | ||||
|   | ||||
| @@ -1,12 +1,31 @@ | ||||
| import {beforeEach, describe, expect, jest, test} from '@jest/globals'; | ||||
| import * as fs from 'fs'; | ||||
| import * as path from 'path'; | ||||
| import * as uuid from 'uuid'; | ||||
| import {Buildx} from '@docker/actions-toolkit/lib/buildx/buildx'; | ||||
| import {Context} from '@docker/actions-toolkit/lib/context'; | ||||
| import {Docker} from '@docker/actions-toolkit/lib/docker/docker'; | ||||
| import {Toolkit} from '@docker/actions-toolkit/lib/toolkit'; | ||||
| import {Node} from '@docker/actions-toolkit/lib/types/builder'; | ||||
|  | ||||
| import * as context from '../src/context'; | ||||
|  | ||||
| const fixturesDir = path.join(__dirname, 'fixtures'); | ||||
| // prettier-ignore | ||||
| const tmpDir = path.join(process.env.TEMP || '/tmp', 'setup-buildx-jest'); | ||||
| const tmpName = path.join(tmpDir, '.tmpname-jest'); | ||||
|  | ||||
| jest.spyOn(Context, 'tmpDir').mockImplementation((): string => { | ||||
|   if (!fs.existsSync(tmpDir)) { | ||||
|     fs.mkdirSync(tmpDir, {recursive: true}); | ||||
|   } | ||||
|   return tmpDir; | ||||
| }); | ||||
|  | ||||
| jest.spyOn(Context, 'tmpName').mockImplementation((): string => { | ||||
|   return tmpName; | ||||
| }); | ||||
|  | ||||
| jest.mock('uuid'); | ||||
| jest.spyOn(uuid, 'v4').mockReturnValue('9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d'); | ||||
|  | ||||
| @@ -171,6 +190,42 @@ describe('getCreateArgs', () => { | ||||
|         '--name', 'builder-9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d', | ||||
|         '--driver', 'unknown', | ||||
|       ] | ||||
|     ], | ||||
|     [ | ||||
|       8, | ||||
|       'v0.10.3', | ||||
|       new Map<string, string>([ | ||||
|         ['install', 'false'], | ||||
|         ['use', 'false'], | ||||
|         ['buildkitd-config', path.join(fixturesDir, 'buildkitd.toml')], | ||||
|         ['cache-binary', 'true'], | ||||
|         ['cleanup', 'true'], | ||||
|       ]), | ||||
|       [ | ||||
|         'create', | ||||
|         '--name', 'builder-9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d', | ||||
|         '--driver', 'docker-container', | ||||
|         '--buildkitd-flags', '--allow-insecure-entitlement security.insecure --allow-insecure-entitlement network.host', | ||||
|         '--config', tmpName, | ||||
|       ] | ||||
|     ], | ||||
|     [ | ||||
|       9, | ||||
|       'v0.10.3', | ||||
|       new Map<string, string>([ | ||||
|         ['install', 'false'], | ||||
|         ['use', 'false'], | ||||
|         ['buildkitd-config-inline', 'debug = true'], | ||||
|         ['cache-binary', 'true'], | ||||
|         ['cleanup', 'true'], | ||||
|       ]), | ||||
|       [ | ||||
|         'create', | ||||
|         '--name', 'builder-9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d', | ||||
|         '--driver', 'docker-container', | ||||
|         '--buildkitd-flags', '--allow-insecure-entitlement security.insecure --allow-insecure-entitlement network.host', | ||||
|         '--config', tmpName, | ||||
|       ] | ||||
|     ] | ||||
|   ])( | ||||
|     '[%d] given buildx %s and %p as inputs, returns %p', | ||||
|   | ||||
							
								
								
									
										1
									
								
								__tests__/fixtures/buildkitd.toml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										1
									
								
								__tests__/fixtures/buildkitd.toml
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1 @@ | ||||
| debug = true | ||||
							
								
								
									
										23
									
								
								action.yml
									
									
									
									
									
								
							
							
						
						
									
										23
									
								
								action.yml
									
									
									
									
									
								
							| @@ -18,9 +18,15 @@ inputs: | ||||
|     description: 'List of additional driver-specific options. (eg. image=moby/buildkit:master)' | ||||
|     required: false | ||||
|   buildkitd-flags: | ||||
|     description: 'Flags for buildkitd daemon' | ||||
|     description: 'BuildKit daemon flags' | ||||
|     default: '--allow-insecure-entitlement security.insecure --allow-insecure-entitlement network.host' | ||||
|     required: false | ||||
|   buildkitd-config: | ||||
|     description: 'BuildKit daemon config file' | ||||
|     required: false | ||||
|   buildkitd-config-inline: | ||||
|     description: 'Inline BuildKit daemon config' | ||||
|     required: false | ||||
|   install: | ||||
|     description: 'Sets up docker build command as an alias to docker buildx build' | ||||
|     default: 'false' | ||||
| @@ -35,12 +41,6 @@ inputs: | ||||
|   platforms: | ||||
|     description: 'Fixed platforms for current node. If not empty, values take priority over the detected ones' | ||||
|     required: false | ||||
|   config: | ||||
|     description: 'BuildKit config file' | ||||
|     required: false | ||||
|   config-inline: | ||||
|     description: 'Inline BuildKit config' | ||||
|     required: false | ||||
|   append: | ||||
|     description: 'Append additional nodes to the builder' | ||||
|     required: false | ||||
| @@ -52,6 +52,15 @@ inputs: | ||||
|     description: 'Cleanup temp files and remove builder at the end of a job' | ||||
|     default: 'true' | ||||
|     required: false | ||||
|   # deprecated inputs | ||||
|   config: | ||||
|     description: 'BuildKit daemon config file' | ||||
|     deprecationMessage: 'Use buildkitd-config instead' | ||||
|     required: false | ||||
|   config-inline: | ||||
|     description: 'Inline BuildKit daemon config' | ||||
|     deprecationMessage: 'Use buildkitd-config-inline instead' | ||||
|     required: false | ||||
|  | ||||
| outputs: | ||||
|   name: | ||||
|   | ||||
							
								
								
									
										14
									
								
								dist/index.js
									
									
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										14
									
								
								dist/index.js
									
									
									
										generated
									
									
										vendored
									
									
								
							
										
											
												File diff suppressed because one or more lines are too long
											
										
									
								
							
							
								
								
									
										2
									
								
								dist/index.js.map
									
									
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										2
									
								
								dist/index.js.map
									
									
									
										generated
									
									
										vendored
									
									
								
							
										
											
												File diff suppressed because one or more lines are too long
											
										
									
								
							
							
								
								
									
										155
									
								
								dist/licenses.txt
									
									
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										155
									
								
								dist/licenses.txt
									
									
									
										generated
									
									
										vendored
									
									
								
							| @@ -1351,117 +1351,6 @@ Copyright (c) 2012 Felix Geisendörfer (felix@debuggable.com) and contributors | ||||
|  THE SOFTWARE. | ||||
|  | ||||
|  | ||||
| fs.realpath | ||||
| ISC | ||||
| The ISC License | ||||
|  | ||||
| Copyright (c) Isaac Z. Schlueter and Contributors | ||||
|  | ||||
| Permission to use, copy, modify, and/or distribute this software for any | ||||
| purpose with or without fee is hereby granted, provided that the above | ||||
| copyright notice and this permission notice appear in all copies. | ||||
|  | ||||
| THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES | ||||
| WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF | ||||
| MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR | ||||
| ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES | ||||
| WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN | ||||
| ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR | ||||
| IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. | ||||
|  | ||||
| ---- | ||||
|  | ||||
| This library bundles a version of the `fs.realpath` and `fs.realpathSync` | ||||
| methods from Node.js v0.10 under the terms of the Node.js MIT license. | ||||
|  | ||||
| Node's license follows, also included at the header of `old.js` which contains | ||||
| the licensed code: | ||||
|  | ||||
|   Copyright Joyent, Inc. and other Node contributors. | ||||
|  | ||||
|   Permission is hereby granted, free of charge, to any person obtaining a | ||||
|   copy of this software and associated documentation files (the "Software"), | ||||
|   to deal in the Software without restriction, including without limitation | ||||
|   the rights to use, copy, modify, merge, publish, distribute, sublicense, | ||||
|   and/or sell copies of the Software, and to permit persons to whom the | ||||
|   Software is furnished to do so, subject to the following conditions: | ||||
|  | ||||
|   The above copyright notice and this permission notice shall be included in | ||||
|   all copies or substantial portions of the Software. | ||||
|  | ||||
|   THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||||
|   IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||||
|   FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||||
|   AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||||
|   LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING | ||||
|   FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER | ||||
|   DEALINGS IN THE SOFTWARE. | ||||
|  | ||||
|  | ||||
| glob | ||||
| ISC | ||||
| The ISC License | ||||
|  | ||||
| Copyright (c) Isaac Z. Schlueter and Contributors | ||||
|  | ||||
| Permission to use, copy, modify, and/or distribute this software for any | ||||
| purpose with or without fee is hereby granted, provided that the above | ||||
| copyright notice and this permission notice appear in all copies. | ||||
|  | ||||
| THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES | ||||
| WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF | ||||
| MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR | ||||
| ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES | ||||
| WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN | ||||
| ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR | ||||
| IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. | ||||
|  | ||||
| ## Glob Logo | ||||
|  | ||||
| Glob's logo created by Tanya Brassie <http://tanyabrassie.com/>, licensed | ||||
| under a Creative Commons Attribution-ShareAlike 4.0 International License | ||||
| https://creativecommons.org/licenses/by-sa/4.0/ | ||||
|  | ||||
|  | ||||
| inflight | ||||
| ISC | ||||
| The ISC License | ||||
|  | ||||
| Copyright (c) Isaac Z. Schlueter | ||||
|  | ||||
| Permission to use, copy, modify, and/or distribute this software for any | ||||
| purpose with or without fee is hereby granted, provided that the above | ||||
| copyright notice and this permission notice appear in all copies. | ||||
|  | ||||
| THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES | ||||
| WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF | ||||
| MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR | ||||
| ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES | ||||
| WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN | ||||
| ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR | ||||
| IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. | ||||
|  | ||||
|  | ||||
| inherits | ||||
| ISC | ||||
| The ISC License | ||||
|  | ||||
| Copyright (c) Isaac Z. Schlueter | ||||
|  | ||||
| Permission to use, copy, modify, and/or distribute this software for any | ||||
| purpose with or without fee is hereby granted, provided that the above | ||||
| copyright notice and this permission notice appear in all copies. | ||||
|  | ||||
| THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH | ||||
| REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND | ||||
| FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, | ||||
| INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM | ||||
| LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR | ||||
| OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR | ||||
| PERFORMANCE OF THIS SOFTWARE. | ||||
|  | ||||
|  | ||||
|  | ||||
| is-plain-object | ||||
| MIT | ||||
| The MIT License (MIT) | ||||
| @@ -1674,50 +1563,6 @@ ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR | ||||
| IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. | ||||
|  | ||||
|  | ||||
| path-is-absolute | ||||
| MIT | ||||
| The MIT License (MIT) | ||||
|  | ||||
| Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com) | ||||
|  | ||||
| Permission is hereby granted, free of charge, to any person obtaining a copy | ||||
| of this software and associated documentation files (the "Software"), to deal | ||||
| in the Software without restriction, including without limitation the rights | ||||
| to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||||
| copies of the Software, and to permit persons to whom the Software is | ||||
| furnished to do so, subject to the following conditions: | ||||
|  | ||||
| The above copyright notice and this permission notice shall be included in | ||||
| all copies or substantial portions of the Software. | ||||
|  | ||||
| THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||||
| IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||||
| FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||||
| AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||||
| LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||||
| OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN | ||||
| THE SOFTWARE. | ||||
|  | ||||
|  | ||||
| rimraf | ||||
| ISC | ||||
| The ISC License | ||||
|  | ||||
| Copyright (c) Isaac Z. Schlueter and Contributors | ||||
|  | ||||
| Permission to use, copy, modify, and/or distribute this software for any | ||||
| purpose with or without fee is hereby granted, provided that the above | ||||
| copyright notice and this permission notice appear in all copies. | ||||
|  | ||||
| THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES | ||||
| WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF | ||||
| MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR | ||||
| ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES | ||||
| WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN | ||||
| ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR | ||||
| IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. | ||||
|  | ||||
|  | ||||
| sax | ||||
| ISC | ||||
| The ISC License | ||||
|   | ||||
| @@ -1,3 +0,0 @@ | ||||
| # Append additional nodes to the builder | ||||
|  | ||||
| This page has moved to [Docker Docs website](https://docs.docker.com/build/ci/github-actions/configure-builder/#append-additional-nodes-to-the-builder) | ||||
| @@ -1,3 +0,0 @@ | ||||
| # Authentication support | ||||
|  | ||||
| This page has moved to [Docker Docs website](https://docs.docker.com/build/ci/github-actions/configure-builder/#authentication-for-remote-builders) | ||||
| @@ -1,3 +0,0 @@ | ||||
| # BuildKit daemon configuration | ||||
|  | ||||
| This page has moved to [Docker Docs website](https://docs.docker.com/build/ci/github-actions/configure-builder/#buildkit-daemon-configuration) | ||||
| @@ -1,3 +0,0 @@ | ||||
| # Standalone mode | ||||
|  | ||||
| This page has moved to [Docker Docs website](https://docs.docker.com/build/ci/github-actions/configure-builder/#standalone-mode) | ||||
| @@ -27,7 +27,7 @@ | ||||
|   "dependencies": { | ||||
|     "@actions/core": "^1.10.1", | ||||
|     "@actions/exec": "^1.1.1", | ||||
|     "@docker/actions-toolkit": "^0.17.0", | ||||
|     "@docker/actions-toolkit": "^0.20.0", | ||||
|     "js-yaml": "^4.1.0", | ||||
|     "uuid": "^9.0.1" | ||||
|   }, | ||||
|   | ||||
| @@ -13,12 +13,12 @@ export interface Inputs { | ||||
|   driver: string; | ||||
|   driverOpts: string[]; | ||||
|   buildkitdFlags: string; | ||||
|   buildkitdConfig: string; | ||||
|   buildkitdConfigInline: string; | ||||
|   platforms: string[]; | ||||
|   install: boolean; | ||||
|   use: boolean; | ||||
|   endpoint: string; | ||||
|   config: string; | ||||
|   configInline: string; | ||||
|   append: string; | ||||
|   cacheBinary: boolean; | ||||
|   cleanup: boolean; | ||||
| @@ -35,8 +35,8 @@ export async function getInputs(): Promise<Inputs> { | ||||
|     install: core.getBooleanInput('install'), | ||||
|     use: core.getBooleanInput('use'), | ||||
|     endpoint: core.getInput('endpoint'), | ||||
|     config: core.getInput('config'), | ||||
|     configInline: core.getInput('config-inline'), | ||||
|     buildkitdConfig: core.getInput('buildkitd-config') || core.getInput('config'), | ||||
|     buildkitdConfigInline: core.getInput('buildkitd-config-inline') || core.getInput('config-inline'), | ||||
|     append: core.getInput('append'), | ||||
|     cacheBinary: core.getBooleanInput('cache-binary'), | ||||
|     cleanup: core.getBooleanInput('cleanup') | ||||
| @@ -64,10 +64,10 @@ export async function getCreateArgs(inputs: Inputs, toolkit: Toolkit): Promise<A | ||||
|     args.push('--use'); | ||||
|   } | ||||
|   if (driverSupportsFlags(inputs.driver)) { | ||||
|     if (inputs.config) { | ||||
|       args.push('--config', toolkit.buildkit.config.resolveFromFile(inputs.config)); | ||||
|     } else if (inputs.configInline) { | ||||
|       args.push('--config', toolkit.buildkit.config.resolveFromString(inputs.configInline)); | ||||
|     if (inputs.buildkitdConfig) { | ||||
|       args.push('--config', toolkit.buildkit.config.resolveFromFile(inputs.buildkitdConfig)); | ||||
|     } else if (inputs.buildkitdConfigInline) { | ||||
|       args.push('--config', toolkit.buildkit.config.resolveFromString(inputs.buildkitdConfigInline)); | ||||
|     } | ||||
|   } | ||||
|   if (inputs.endpoint) { | ||||
|   | ||||
							
								
								
									
										42
									
								
								yarn.lock
									
									
									
									
									
								
							
							
						
						
									
										42
									
								
								yarn.lock
									
									
									
									
									
								
							| @@ -56,10 +56,10 @@ | ||||
|     "@actions/core" "^1.2.6" | ||||
|     minimatch "^3.0.4" | ||||
|  | ||||
| "@actions/http-client@^2.0.1", "@actions/http-client@^2.1.1", "@actions/http-client@^2.2.0": | ||||
|   version "2.2.0" | ||||
|   resolved "https://registry.yarnpkg.com/@actions/http-client/-/http-client-2.2.0.tgz#f8239f375be6185fcd07765efdcf0031ad5df1a0" | ||||
|   integrity sha512-q+epW0trjVUUHboliPb4UF9g2msf+w61b32tAkFEwL/IwP0DQWgbCMM0Hbe3e3WXSKz5VcUXbzJQgy8Hkra/Lg== | ||||
| "@actions/http-client@^2.0.1", "@actions/http-client@^2.1.1", "@actions/http-client@^2.2.0", "@actions/http-client@^2.2.1": | ||||
|   version "2.2.1" | ||||
|   resolved "https://registry.yarnpkg.com/@actions/http-client/-/http-client-2.2.1.tgz#ed3fe7a5a6d317ac1d39886b0bb999ded229bb38" | ||||
|   integrity sha512-KhC/cZsq7f8I4LfZSJKgCvEwfkE8o1538VoBeoGzokVLLnbFDEAdFD3UhoMklxo2un9NJVBdANOresx7vTHlHw== | ||||
|   dependencies: | ||||
|     tunnel "^0.0.6" | ||||
|     undici "^5.25.4" | ||||
| @@ -765,26 +765,26 @@ | ||||
|   dependencies: | ||||
|     "@jridgewell/trace-mapping" "0.3.9" | ||||
|  | ||||
| "@docker/actions-toolkit@^0.17.0": | ||||
|   version "0.17.0" | ||||
|   resolved "https://registry.yarnpkg.com/@docker/actions-toolkit/-/actions-toolkit-0.17.0.tgz#33274a3472a09070fa0ece0c51363423f902434f" | ||||
|   integrity sha512-78urVOWpbUaLNJcKIrMwkTavT+wquWMq8OMyohMc7bOcy0mtkN5Nis1Qrl/wAu2MwMMuIFOmXpQmrRtiXOl40Q== | ||||
| "@docker/actions-toolkit@^0.20.0": | ||||
|   version "0.20.0" | ||||
|   resolved "https://registry.yarnpkg.com/@docker/actions-toolkit/-/actions-toolkit-0.20.0.tgz#9619ff5da7f282e02e22509a5f2f1d707d4437fe" | ||||
|   integrity sha512-oAHSQnWjEyRGmGXePt5A/rZG76U/gddQWF/JmD8lZQOL5WZ7WgfUd2MucOaxq3cd66rMew+iwkfqDzFJQewQQw== | ||||
|   dependencies: | ||||
|     "@actions/cache" "^3.2.4" | ||||
|     "@actions/core" "^1.10.1" | ||||
|     "@actions/exec" "^1.1.1" | ||||
|     "@actions/github" "^6.0.0" | ||||
|     "@actions/http-client" "^2.2.0" | ||||
|     "@actions/http-client" "^2.2.1" | ||||
|     "@actions/io" "^1.1.3" | ||||
|     "@actions/tool-cache" "^2.0.1" | ||||
|     "@octokit/core" "^5.1.0" | ||||
|     "@octokit/plugin-rest-endpoint-methods" "^10.4.0" | ||||
|     async-retry "^1.3.3" | ||||
|     csv-parse "^5.5.3" | ||||
|     csv-parse "^5.5.5" | ||||
|     handlebars "^4.7.8" | ||||
|     jwt-decode "^4.0.0" | ||||
|     semver "^7.5.4" | ||||
|     tmp "^0.2.1" | ||||
|     tmp "^0.2.3" | ||||
|  | ||||
| "@eslint-community/eslint-utils@^4.2.0", "@eslint-community/eslint-utils@^4.4.0": | ||||
|   version "4.4.0" | ||||
| @@ -1965,10 +1965,10 @@ cross-spawn@^7.0.2, cross-spawn@^7.0.3: | ||||
|     shebang-command "^2.0.0" | ||||
|     which "^2.0.1" | ||||
|  | ||||
| csv-parse@^5.5.3: | ||||
|   version "5.5.3" | ||||
|   resolved "https://registry.yarnpkg.com/csv-parse/-/csv-parse-5.5.3.tgz#0261050761ee46cd0e46421854bf9bf4de1317bf" | ||||
|   integrity sha512-v0KW6C0qlZzoGjk6u5tLmVfyZxNgPGXZsWTXshpAgKVGmGXzaVWGdlCFxNx5iuzcXT/oJN1HHM9DZKwtAtYa+A== | ||||
| csv-parse@^5.5.5: | ||||
|   version "5.5.5" | ||||
|   resolved "https://registry.yarnpkg.com/csv-parse/-/csv-parse-5.5.5.tgz#68a271a9092877b830541805e14c8a80e6a22517" | ||||
|   integrity sha512-erCk7tyU3yLWAhk6wvKxnyPtftuy/6Ak622gOO7BCJ05+TYffnPCJF905wmOQm+BpkX54OdAl8pveJwUdpnCXQ== | ||||
|  | ||||
| debug@^4.1.0, debug@^4.1.1: | ||||
|   version "4.3.1" | ||||
| @@ -3642,7 +3642,7 @@ reusify@^1.0.4: | ||||
|   resolved "https://registry.yarnpkg.com/reusify/-/reusify-1.0.4.tgz#90da382b1e126efc02146e90845a88db12925d76" | ||||
|   integrity sha512-U9nH88a3fc/ekCF1l0/UP1IosiuIjyTh7hBvXVMHYgVcfGvt897Xguj2UOLDeI5BG2m7/uwyaLVT6fbtCwTyzw== | ||||
|  | ||||
| rimraf@^3.0.0, rimraf@^3.0.2: | ||||
| rimraf@^3.0.2: | ||||
|   version "3.0.2" | ||||
|   resolved "https://registry.yarnpkg.com/rimraf/-/rimraf-3.0.2.tgz#f1a5402ba6220ad52cc1282bac1ae3aa49fd061a" | ||||
|   integrity sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA== | ||||
| @@ -3855,12 +3855,10 @@ titleize@^3.0.0: | ||||
|   resolved "https://registry.yarnpkg.com/titleize/-/titleize-3.0.0.tgz#71c12eb7fdd2558aa8a44b0be83b8a76694acd53" | ||||
|   integrity sha512-KxVu8EYHDPBdUYdKZdKtU2aj2XfEx9AfjXxE/Aj0vT06w2icA09Vus1rh6eSu1y01akYg6BjIK/hxyLJINoMLQ== | ||||
|  | ||||
| tmp@^0.2.1: | ||||
|   version "0.2.1" | ||||
|   resolved "https://registry.yarnpkg.com/tmp/-/tmp-0.2.1.tgz#8457fc3037dcf4719c251367a1af6500ee1ccf14" | ||||
|   integrity sha512-76SUhtfqR2Ijn+xllcI5P1oyannHNHByD80W1q447gU3mp9G9PSpGdWmjUOHRDPiHYacIk66W7ubDTuPF3BEtQ== | ||||
|   dependencies: | ||||
|     rimraf "^3.0.0" | ||||
| tmp@^0.2.3: | ||||
|   version "0.2.3" | ||||
|   resolved "https://registry.yarnpkg.com/tmp/-/tmp-0.2.3.tgz#eb783cc22bc1e8bebd0671476d46ea4eb32a79ae" | ||||
|   integrity sha512-nZD7m9iCPC5g0pYmcaxogYKggSfLsdxl8of3Q/oIbqCqLLIO9IAF0GWjX1z9NZRHPiXv8Wex4yDCaZsgEw0Y8w== | ||||
|  | ||||
| tmpl@1.0.5: | ||||
|   version "1.0.5" | ||||
|   | ||||
		Reference in New Issue
	
	Block a user