Compare commits

..
23 Commits
Author SHA1 Message Date
Tõnis Tiigi 885d1462b8 Merge pull request #258 from crazy-max/update-toolkit
ci / main () (push) Successful in 11s
ci / main (lab:latest) (push) Successful in 16s
ci / main (lab:v0.11.2-desktop.2) (push) Successful in 2m55s
ci / main (latest) (push) Successful in 2m55s
ci / main (v0.4.1) (push) Successful in 2m53s
ci / multi (push) Successful in 20s
ci / error (push) Failing after 4s
ci / debug (push) Failing after 5s
ci / install (push) Successful in 10s
ci / use (false) (push) Successful in 10s
ci / use (true) (push) Successful in 10s
ci / driver (image=moby/buildkit:latest) (push) Successful in 10s
ci / driver (image=moby/buildkit:master network=host ) (push) Successful in 14s
ci / docker-driver (push) Successful in 7s
ci / endpoint (push) Failing after 4s
ci / config (push) Successful in 1m41s
ci / config-inline (push) Successful in 1m29s
ci / with-qemu (, all) (push) Failing after 4s
ci / with-qemu (, arm64,riscv64,arm) (push) Failing after 2s
ci / with-qemu (v0.9.1, all) (push) Failing after 5s
ci / with-qemu (v0.9.1, arm64,riscv64,arm) (push) Failing after 2s
ci / build-ref (cb185f095fd3d9444e0aa605d3789e9e05f2a1e7) (push) Successful in 2m54s
ci / build-ref (master) (push) Successful in 2m58s
ci / build-ref (refs/tags/v0.5.1) (push) Successful in 3m39s
ci / standalone-cmd (push) Successful in 2m52s
ci / standalone-action (push) Successful in 1m24s
ci / standalone-install-error (push) Successful in 11s
ci / k3s (v0.10.5) (push) Canceled after 0s
ci / k3s (v0.11.0) (push) Canceled after 0s
ci / build-ref (refs/pull/731/head) (push) Successful in 2m58s
ci / append (push) Successful in 18s
ci / platforms (push) Failing after 5s
ci / docker-context (push) Successful in 9s
ci / cleanup (false) (push) Successful in 6s
ci / cleanup (true) (push) Successful in 12s
bump @docker/actions-toolkit from 0.7.1 to 0.10.0
2023-08-27 18:39:52 -07:00
CrazyMax e5fad018d0 ci: check lab releases
Signed-off-by: CrazyMax <[email protected]>
2023-08-26 14:03:23 +02:00
CrazyMax 45161fd92a update generated content
Signed-off-by: CrazyMax <[email protected]>
2023-08-26 14:03:22 +02:00
CrazyMax a4d51f53dd bump @docker/actions-toolkit from 0.7.1 to 0.10.0
Signed-off-by: CrazyMax <[email protected]>
2023-08-26 14:03:22 +02:00
CrazyMax 93b8ecaa2c ci: docker-ce packages are now installed on GitHub Runners
Signed-off-by: CrazyMax <[email protected]>
2023-08-26 14:03:22 +02:00
CrazyMax 7703e82fbc Merge pull request #253 from docker/dependabot/npm_and_yarn/word-wrap-1.2.5
Bump word-wrap from 1.2.3 to 1.2.5
2023-08-08 13:17:08 +02:00
CrazyMax 0005881963 Merge pull request #254 from crazy-max/rm-codeowners
chore: remove CODEOWNERS
2023-08-08 12:55:44 +02:00
CrazyMax b699069f49 chore: remove CODEOWNERS
Signed-off-by: CrazyMax <[email protected]>
2023-08-08 12:53:26 +02:00
dependabot[bot] 9bfc5497b8 Bump word-wrap from 1.2.3 to 1.2.5
Bumps [word-wrap](https://github.com/jonschlinkert/word-wrap) from 1.2.3 to 1.2.5.
- [Release notes](https://github.com/jonschlinkert/word-wrap/releases)
- [Commits](https://github.com/jonschlinkert/word-wrap/compare/1.2.3...1.2.5)

---
updated-dependencies:
- dependency-name: word-wrap
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <[email protected]>
2023-08-08 10:46:55 +00:00
Tõnis Tiigi b92d4d8769 Merge pull request #252 from crazy-max/dependabot-update
chore: set increase as versioning strategy
2023-08-08 09:53:55 +03:00
CrazyMax 285be6c835 chore: set increase as versioning strategy
Signed-off-by: CrazyMax <[email protected]>
2023-08-08 05:57:51 +02:00
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
10 changed files with 1099 additions and 57 deletions
-1
View File
@@ -1 +0,0 @@
* @crazy-max
+1
View File
@@ -11,6 +11,7 @@ updates:
directory: "/" directory: "/"
schedule: schedule:
interval: "daily" interval: "daily"
versioning-strategy: "increase"
allow: allow:
- dependency-type: "production" - dependency-type: "production"
labels: labels:
+22 -9
View File
@@ -18,9 +18,11 @@ jobs:
fail-fast: false fail-fast: false
matrix: matrix:
buildx-version: buildx-version:
- latest
- v0.4.1
- "" - ""
- "latest"
- "v0.4.1"
- "lab:latest"
- "lab:v0.11.2-desktop.2"
steps: steps:
- -
name: Checkout name: Checkout
@@ -60,7 +62,7 @@ jobs:
- -
name: Stop docker name: Stop docker
run: | run: |
sudo systemctl stop docker sudo systemctl stop docker docker.socket
- -
name: Set up Docker Buildx name: Set up Docker Buildx
id: buildx id: buildx
@@ -285,8 +287,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
@@ -350,7 +351,11 @@ jobs:
- -
name: Uninstall docker cli name: Uninstall docker cli
run: | run: |
sudo apt-get purge -y moby-cli moby-buildx if dpkg -s "docker-ce" >/dev/null 2>&1; then
sudo dpkg -r --force-depends docker-ce-cli docker-buildx-plugin
else
sudo apt-get purge -y moby-cli moby-buildx
fi
- -
name: Set up Docker Buildx name: Set up Docker Buildx
uses: ./ uses: ./
@@ -374,7 +379,11 @@ jobs:
- -
name: Uninstall docker cli name: Uninstall docker cli
run: | run: |
sudo apt-get purge -y moby-cli moby-buildx if dpkg -s "docker-ce" >/dev/null 2>&1; then
sudo dpkg -r --force-depends docker-ce-cli docker-buildx-plugin
else
sudo apt-get purge -y moby-cli moby-buildx
fi
- -
name: Set up Docker Buildx name: Set up Docker Buildx
uses: ./ uses: ./
@@ -401,7 +410,11 @@ jobs:
- -
name: Uninstall docker cli name: Uninstall docker cli
run: | run: |
sudo apt-get purge -y moby-cli moby-buildx if dpkg -s "docker-ce" >/dev/null 2>&1; then
sudo dpkg -r --force-depends docker-ce-cli docker-buildx-plugin
else
sudo apt-get purge -y moby-cli moby-buildx
fi
- -
name: Set up Docker Buildx name: Set up Docker Buildx
id: buildx id: buildx
@@ -503,7 +516,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.5.0", "@docker/actions-toolkit": "^0.10.0",
"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';
}
+325 -39
View File
File diff suppressed because it is too large Load Diff