Compare commits

..
18 Commits
Author SHA1 Message Date
CrazyMax 4c0219f9ac Merge pull request #248 from docker/dependabot/npm_and_yarn/docker/actions-toolkit-0.7.1
ci / debug (push) Failing after 5s
ci / with-qemu (v0.9.1, arm64,riscv64,arm) (push) Failing after 3s
ci / error (push) Failing after 7s
ci / endpoint (push) Failing after 4s
ci / docker-driver (push) Successful in 5s
ci / with-qemu (, all) (push) Failing after 4s
ci / with-qemu (v0.9.1, all) (push) Failing after 5s
ci / main (latest) (push) Successful in 11s
ci / with-qemu (, arm64,riscv64,arm) (push) Failing after 5s
ci / install (push) Successful in 11s
ci / multi (push) Successful in 12s
ci / use (true) (push) Successful in 10s
ci / build-ref (cb185f095fd3d9444e0aa605d3789e9e05f2a1e7) (push) Failing after 7s
ci / driver (image=moby/buildkit:master network=host ) (push) Successful in 10s
ci / build-ref (refs/tags/v0.5.1) (push) Failing after 9s
ci / main () (push) Successful in 13s
ci / platforms (push) Failing after 4s
ci / standalone-cmd (push) Successful in 10s
ci / use (false) (push) Successful in 12s
ci / main (v0.4.1) (push) Successful in 13s
ci / driver (image=moby/buildkit:latest) (push) Successful in 10s
ci / config (push) Successful in 13s
ci / cleanup (false) (push) Successful in 10s
ci / cleanup (true) (push) Successful in 10s
ci / standalone-action (push) Successful in 12s
ci / docker-context (push) Successful in 13s
ci / append (push) Successful in 17s
ci / standalone-install-error (push) Successful in 18s
ci / config-inline (push) Successful in 1m51s
ci / build-ref (refs/pull/731/head) (push) Successful in 3m0s
ci / build-ref (master) (push) Successful in 3m2s
ci / k3s (v0.10.5) (push) Canceled after 0s
ci / k3s (v0.11.0) (push) Canceled after 0s
Bump @docker/actions-toolkit from 0.7.0 to 0.7.1
2023-07-12 14:31:49 +02:00
CrazyMax 0db41bf51b update generated content
Signed-off-by: CrazyMax <[email protected]>
2023-07-12 14:30:00 +02:00
dependabot[bot] 62fc1a1dd6 Bump @docker/actions-toolkit from 0.7.0 to 0.7.1
Bumps [@docker/actions-toolkit](https://github.com/docker/actions-toolkit) from 0.7.0 to 0.7.1.
- [Release notes](https://github.com/docker/actions-toolkit/releases)
- [Commits](https://github.com/docker/actions-toolkit/compare/v0.7.0...v0.7.1)

---
updated-dependencies:
- dependency-name: "@docker/actions-toolkit"
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
2023-07-12 12:28:25 +00:00
CrazyMax 2a1a44ac4a Merge pull request #246 from docker/dependabot/npm_and_yarn/docker/actions-toolkit-0.7.0
ci / debug (push) Failing after 6s
ci / error (push) Failing after 7s
ci / main (latest) (push) Successful in 10s
ci / multi (push) Successful in 15s
ci / endpoint (push) Failing after 6s
ci / with-qemu (, arm64,riscv64,arm) (push) Failing after 5s
ci / use (false) (push) Successful in 11s
ci / with-qemu (, all) (push) Failing after 5s
ci / install (push) Successful in 12s
ci / use (true) (push) Successful in 13s
ci / with-qemu (v0.9.1, arm64,riscv64,arm) (push) Failing after 5s
ci / docker-driver (push) Successful in 12s
ci / docker-context (push) Successful in 10s
ci / with-qemu (v0.9.1, all) (push) Failing after 6s
ci / driver (image=moby/buildkit:latest) (push) Successful in 12s
ci / standalone-cmd (push) Successful in 13s
ci / driver (image=moby/buildkit:master network=host ) (push) Successful in 18s
ci / main () (push) Successful in 16s
ci / platforms (push) Failing after 4s
ci / append (push) Successful in 13s
ci / standalone-action (push) Successful in 14s
ci / cleanup (false) (push) Successful in 10s
ci / config-inline (push) Successful in 20s
ci / cleanup (true) (push) Successful in 16s
ci / config (push) Successful in 1m9s
ci / main (v0.4.1) (push) Successful in 2m59s
ci / build-ref (cb185f095fd3d9444e0aa605d3789e9e05f2a1e7) (push) Successful in 2m57s
ci / standalone-install-error (push) Successful in 2m58s
ci / build-ref (master) (push) Successful in 3m0s
ci / build-ref (refs/tags/v0.5.1) (push) Successful in 3m11s
ci / build-ref (refs/pull/731/head) (push) Successful in 3m16s
ci / k3s (v0.11.0) (push) Canceled after 0s
ci / k3s (v0.10.5) (push) Canceled after 0s
Bump @docker/actions-toolkit from 0.6.0 to 0.7.0
2023-07-07 10:03:01 +02:00
CrazyMax a6c26a99ef update ci workflow
Signed-off-by: CrazyMax <[email protected]>
2023-07-06 23:24:05 +02:00
CrazyMax a5a7f565d9 update generated content
Signed-off-by: CrazyMax <[email protected]>
2023-07-06 23:17:35 +02:00
dependabot[bot] 7d7611f95b Bump @docker/actions-toolkit from 0.6.0 to 0.7.0
Bumps [@docker/actions-toolkit](https://github.com/docker/actions-toolkit) from 0.6.0 to 0.7.0.
- [Release notes](https://github.com/docker/actions-toolkit/releases)
- [Commits](https://github.com/docker/actions-toolkit/compare/v0.6.0...v0.7.0)

---
updated-dependencies:
- dependency-name: "@docker/actions-toolkit"
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
2023-07-06 19:49:53 +00:00
CrazyMax 16c0bc4a6e Merge pull request #242 from docker/dependabot/npm_and_yarn/docker/actions-toolkit-0.6.0
ci / error (push) Failing after 8s
ci / with-qemu (latest, all) (push) Failing after 7s
ci / with-qemu (latest, arm64,riscv64,arm) (push) Failing after 6s
ci / with-qemu (v0.4.1, all) (push) Failing after 7s
ci / docker-driver (push) Successful in 10s
ci / use (false) (push) Successful in 13s
ci / debug (push) Failing after 5s
ci / driver (image=moby/buildkit:latest) (push) Successful in 13s
ci / multi (push) Successful in 19s
ci / with-qemu (, arm64,riscv64,arm) (push) Failing after 6s
ci / endpoint (push) Failing after 10s
ci / main (latest) (push) Successful in 13s
ci / main (v0.4.1) (push) Successful in 14s
ci / main () (push) Successful in 17s
ci / use (true) (push) Successful in 18s
ci / driver (image=moby/buildkit:master network=host ) (push) Successful in 16s
ci / platforms (push) Failing after 8s
ci / docker-context (push) Successful in 9s
ci / config (push) Successful in 20s
ci / standalone-cmd (push) Successful in 13s
ci / install (push) Successful in 12s
ci / with-qemu (, all) (push) Failing after 9s
ci / build-ref (master) (push) Successful in 19s
ci / cleanup (false) (push) Successful in 10s
ci / config-inline (push) Successful in 25s
ci / with-qemu (v0.4.1, arm64,riscv64,arm) (push) Failing after 8s
ci / build-ref (cb185f095fd3d9444e0aa605d3789e9e05f2a1e7) (push) Successful in 22s
ci / standalone-install-error (push) Successful in 20s
ci / build-ref (refs/tags/v0.5.1) (push) Successful in 21s
ci / build-ref (refs/pull/731/head) (push) Failing after 10s
ci / cleanup (true) (push) Successful in 12s
ci / standalone-action (push) Successful in 21s
ci / append (push) Successful in 14s
ci / k3s (v0.10.5) (push) Canceled after 0s
ci / k3s (v0.11.0-rc1) (push) Canceled after 0s
Bump @docker/actions-toolkit from 0.5.0 to 0.6.0
2023-06-28 17:24:42 +02:00
CrazyMax ebcacb9c21 update generated content
Signed-off-by: CrazyMax <[email protected]>
2023-06-28 17:22:25 +02:00
dependabot[bot] 496a823b8b Bump @docker/actions-toolkit from 0.5.0 to 0.6.0
Bumps [@docker/actions-toolkit](https://github.com/docker/actions-toolkit) from 0.5.0 to 0.6.0.
- [Release notes](https://github.com/docker/actions-toolkit/releases)
- [Commits](https://github.com/docker/actions-toolkit/compare/v0.5.0...v0.6.0)

---
updated-dependencies:
- dependency-name: "@docker/actions-toolkit"
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
2023-06-28 15:16:58 +00:00
CrazyMax a56031a493 Merge pull request #241 from nicks/nicks/driver
context: only append flags if we know the driver supports them
2023-06-28 15:46:28 +02:00
Nick Santos 922550f064 context: only append flags if we know the driver supports them
Background: before this change, if i tried to use GHA with an experimental
driver, it would automatically append the flags

``
--allow-insecure-entitlement security.insecure --allow-insecure-entitlement network.host
```

even if the underlying driver did not support them.

Signed-off-by: Nick Santos <[email protected]>
2023-06-28 09:30:10 -04:00
CrazyMax ecf95283f0 Merge pull request #238 from docker/dependabot/npm_and_yarn/docker/actions-toolkit-0.5.0
ci / error (push) Failing after 5s
ci / debug (push) Failing after 6s
ci / endpoint (push) Failing after 6s
ci / multi (push) Successful in 13s
ci / install (push) Successful in 11s
ci / driver (image=moby/buildkit:master network=host ) (push) Successful in 9s
ci / docker-driver (push) Successful in 9s
ci / with-qemu (latest, arm64,riscv64,arm) (push) Failing after 6s
ci / driver (image=moby/buildkit:latest) (push) Successful in 11s
ci / main (latest) (push) Successful in 17s
ci / use (true) (push) Successful in 11s
ci / with-qemu (, arm64,riscv64,arm) (push) Failing after 5s
ci / use (false) (push) Successful in 17s
ci / with-qemu (v0.4.1, all) (push) Failing after 5s
ci / cleanup (true) (push) Successful in 8s
ci / config (push) Successful in 20s
ci / main (v0.4.1) (push) Successful in 11s
ci / standalone-cmd (push) Successful in 12s
ci / platforms (push) Failing after 6s
ci / with-qemu (latest, all) (push) Failing after 7s
ci / cleanup (false) (push) Successful in 10s
ci / with-qemu (v0.4.1, arm64,riscv64,arm) (push) Failing after 7s
ci / docker-context (push) Successful in 6s
ci / standalone-install-error (push) Successful in 10s
ci / append (push) Successful in 12s
ci / with-qemu (, all) (push) Failing after 8s
ci / main () (push) Successful in 11s
ci / build-ref (cb185f095fd3d9444e0aa605d3789e9e05f2a1e7) (push) Successful in 19s
ci / build-ref (refs/pull/731/head) (push) Successful in 22s
ci / standalone-action (push) Successful in 22s
ci / build-ref (master) (push) Successful in 29s
ci / build-ref (refs/tags/v0.5.1) (push) Successful in 40s
ci / config-inline (push) Successful in 1m57s
ci / k3s (v0.10.5) (push) Canceled after 0s
ci / k3s (v0.11.0-rc1) (push) Canceled after 0s
Bump @docker/actions-toolkit from 0.4.0 to 0.5.0
2023-06-13 11:55:02 +02:00
CrazyMax b2a38ee0c6 update generated content
Signed-off-by: CrazyMax <[email protected]>
2023-06-13 11:51:23 +02:00
dependabot[bot] 7f79690cac Bump @docker/actions-toolkit from 0.4.0 to 0.5.0
Bumps [@docker/actions-toolkit](https://github.com/docker/actions-toolkit) from 0.4.0 to 0.5.0.
- [Release notes](https://github.com/docker/actions-toolkit/releases)
- [Commits](https://github.com/docker/actions-toolkit/compare/v0.4.0...v0.5.0)

---
updated-dependencies:
- dependency-name: "@docker/actions-toolkit"
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
2023-06-13 09:45:06 +00:00
CrazyMax bdd549bec0 Merge pull request #237 from docker/dependabot/npm_and_yarn/docker/actions-toolkit-0.4.0
Bump @docker/actions-toolkit from 0.3.0 to 0.4.0
2023-06-10 02:08:25 +02:00
CrazyMax be4a3855af update generated content
Signed-off-by: CrazyMax <[email protected]>
2023-06-10 02:05:18 +02:00
dependabot[bot] 6c4dbb29f6 Bump @docker/actions-toolkit from 0.3.0 to 0.4.0
Bumps [@docker/actions-toolkit](https://github.com/docker/actions-toolkit) from 0.3.0 to 0.4.0.
- [Release notes](https://github.com/docker/actions-toolkit/releases)
- [Commits](https://github.com/docker/actions-toolkit/compare/v0.3.0...v0.4.0)

---
updated-dependencies:
- dependency-name: "@docker/actions-toolkit"
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
2023-06-10 00:03:39 +00:00
8 changed files with 1061 additions and 25 deletions
+2 -3
View File
@@ -285,8 +285,7 @@ jobs:
fail-fast: false fail-fast: false
matrix: matrix:
buildx-version: buildx-version:
- latest - v0.9.1
- v0.4.1
- "" - ""
qemu-platforms: qemu-platforms:
- all - all
@@ -503,7 +502,7 @@ jobs:
fail-fast: false fail-fast: false
matrix: matrix:
version: version:
- v0.11.0-rc1 - v0.11.0
- v0.10.5 - v0.10.5
steps: steps:
- -
+15
View File
@@ -148,6 +148,21 @@ describe('getCreateArgs', () => {
'--buildkitd-flags', '--allow-insecure-entitlement security.insecure --allow-insecure-entitlement network.host', '--buildkitd-flags', '--allow-insecure-entitlement security.insecure --allow-insecure-entitlement network.host',
'--platform', 'linux/amd64,linux/arm64,linux/arm/v7' '--platform', 'linux/amd64,linux/arm64,linux/arm/v7'
] ]
],
[
7,
'v0.10.3',
new Map<string, string>([
['install', 'false'],
['use', 'false'],
['driver', 'unknown'],
['cleanup', 'true'],
]),
[
'create',
'--name', 'builder-9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d',
'--driver', 'unknown',
]
] ]
])( ])(
'[%d] given buildx %s and %p as inputs, returns %p', '[%d] given buildx %s and %p as inputs, returns %p',
Generated Vendored
+17 -3
View File
File diff suppressed because one or more lines are too long
Generated Vendored
+1 -1
View File
File diff suppressed because one or more lines are too long
Generated Vendored
+710
View File
File diff suppressed because it is too large Load Diff
+1 -1
View File
@@ -29,7 +29,7 @@
"dependencies": { "dependencies": {
"@actions/core": "^1.10.0", "@actions/core": "^1.10.0",
"@actions/exec": "^1.1.1", "@actions/exec": "^1.1.1",
"@docker/actions-toolkit": "^0.3.0", "@docker/actions-toolkit": "^0.7.1",
"js-yaml": "^4.1.0", "js-yaml": "^4.1.0",
"uuid": "^9.0.0" "uuid": "^9.0.0"
}, },
+7 -3
View File
@@ -51,7 +51,7 @@ export async function getCreateArgs(inputs: Inputs, toolkit: Toolkit): Promise<A
await Util.asyncForEach(inputs.driverOpts, async driverOpt => { await Util.asyncForEach(inputs.driverOpts, async driverOpt => {
args.push('--driver-opt', driverOpt); args.push('--driver-opt', driverOpt);
}); });
if (inputs.driver != 'remote' && inputs.buildkitdFlags) { if (driverSupportsFlags(inputs.driver) && inputs.buildkitdFlags) {
args.push('--buildkitd-flags', inputs.buildkitdFlags); args.push('--buildkitd-flags', inputs.buildkitdFlags);
} }
} }
@@ -61,7 +61,7 @@ export async function getCreateArgs(inputs: Inputs, toolkit: Toolkit): Promise<A
if (inputs.use) { if (inputs.use) {
args.push('--use'); args.push('--use');
} }
if (inputs.driver != 'remote') { if (driverSupportsFlags(inputs.driver)) {
if (inputs.config) { if (inputs.config) {
args.push('--config', toolkit.buildkit.config.resolveFromFile(inputs.config)); args.push('--config', toolkit.buildkit.config.resolveFromFile(inputs.config));
} else if (inputs.configInline) { } else if (inputs.configInline) {
@@ -85,7 +85,7 @@ export async function getAppendArgs(inputs: Inputs, node: Node, toolkit: Toolkit
await Util.asyncForEach(node['driver-opts'], async driverOpt => { await Util.asyncForEach(node['driver-opts'], async driverOpt => {
args.push('--driver-opt', driverOpt); args.push('--driver-opt', driverOpt);
}); });
if (inputs.driver != 'remote' && node['buildkitd-flags']) { if (driverSupportsFlags(inputs.driver) && node['buildkitd-flags']) {
args.push('--buildkitd-flags', node['buildkitd-flags']); args.push('--buildkitd-flags', node['buildkitd-flags']);
} }
} }
@@ -105,3 +105,7 @@ export async function getInspectArgs(inputs: Inputs, toolkit: Toolkit): Promise<
} }
return args; return args;
} }
function driverSupportsFlags(driver: string): boolean {
return driver == '' || driver == 'docker-container' || driver == 'docker' || driver == 'kubernetes';
}
+308 -14
View File
File diff suppressed because it is too large Load Diff