81 Commits

Author SHA1 Message Date
635d07c09d Merge pull request #119 from crazy-max/update-readme
readme: remove qemu set up workaround
2024-11-25 16:43:21 +01:00
34a3d15d63 readme: remove qemu set up workaround 2024-11-25 16:34:05 +01:00
560d8b137b Merge pull request #132 from crazy-max/dependabot/npm_and_yarn/docker/actions-toolkit-0.46.0
build(deps): bump @docker/actions-toolkit from 0.45.0 to 0.46.0
2024-11-25 16:33:22 +01:00
482b1d74c1 ci: bump docker version 2024-11-25 15:54:25 +01:00
f0ff59fe55 ci: remove qemu set up workaround 2024-11-25 14:58:38 +01:00
939fbc5e6e chore: update generated content 2024-11-25 14:10:51 +01:00
a0bafae0b8 build(deps): bump @docker/actions-toolkit from 0.45.0 to 0.46.0
Bumps [@docker/actions-toolkit](https://github.com/docker/actions-toolkit) from 0.45.0 to 0.46.0.
- [Release notes](https://github.com/docker/actions-toolkit/releases)
- [Commits](https://github.com/docker/actions-toolkit/compare/v0.45.0...v0.46.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-11-25 13:07:41 +00:00
a37e5b7d61 Merge pull request #130 from crazy-max/dependabot/npm_and_yarn/cross-spawn-7.0.6
build(deps): bump cross-spawn from 7.0.3 to 7.0.6
2024-11-19 02:37:07 +01:00
f6d883591e Merge pull request #129 from crazy-max/dependabot/npm_and_yarn/docker/actions-toolkit-0.45.0
build(deps): bump @docker/actions-toolkit from 0.44.0 to 0.45.0
2024-11-19 02:36:02 +01:00
02c50bf68d Merge pull request #127 from crazy-max/dependabot/github_actions/codecov/codecov-action-5
build(deps): bump codecov/codecov-action from 4 to 5
2024-11-19 01:35:51 +01:00
6ec0bb821a chore: update generated content 2024-11-19 01:06:46 +01:00
3b54d1cfdf build(deps): bump cross-spawn from 7.0.3 to 7.0.6
Bumps [cross-spawn](https://github.com/moxystudio/node-cross-spawn) from 7.0.3 to 7.0.6.
- [Changelog](https://github.com/moxystudio/node-cross-spawn/blob/master/CHANGELOG.md)
- [Commits](https://github.com/moxystudio/node-cross-spawn/compare/v7.0.3...v7.0.6)

---
updated-dependencies:
- dependency-name: cross-spawn
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-11-18 23:57:08 +00:00
eaea3291c9 build(deps): bump @docker/actions-toolkit from 0.44.0 to 0.45.0
Bumps [@docker/actions-toolkit](https://github.com/docker/actions-toolkit) from 0.44.0 to 0.45.0.
- [Release notes](https://github.com/docker/actions-toolkit/releases)
- [Commits](https://github.com/docker/actions-toolkit/compare/v0.44.0...v0.45.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-11-18 23:56:30 +00:00
8b555caf8d Merge pull request #128 from crazy-max/drop-macos-12
ci: remove deprecated macos-12 runner
2024-11-19 00:55:15 +01:00
40162ae1f1 ci: fix deprecated input for codecov-action 2024-11-19 00:54:28 +01:00
7d1184f528 ci: remove deprecated macos-12 runner 2024-11-19 00:51:08 +01:00
2419f2cbba build(deps): bump codecov/codecov-action from 4 to 5
Bumps [codecov/codecov-action](https://github.com/codecov/codecov-action) from 4 to 5.
- [Release notes](https://github.com/codecov/codecov-action/releases)
- [Changelog](https://github.com/codecov/codecov-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/codecov/codecov-action/compare/v4...v5)

---
updated-dependencies:
- dependency-name: codecov/codecov-action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-11-15 10:18:31 +00:00
332d315257 Merge pull request #124 from vvoland/rootless
Add rootless support
2024-11-14 15:18:28 +01:00
343f86705e ci: rootless job 2024-11-14 14:26:25 +01:00
bcd97be19b Add rootless support
Wire up `rootless` config to the new `rootless` Install option.

Signed-off-by: Paweł Gronowski <pawel.gronowski@docker.com>
2024-11-14 14:21:34 +01:00
e02739be38 Merge pull request #126 from crazy-max/dependabot/npm_and_yarn/docker/actions-toolkit-0.44.0
build(deps): bump @docker/actions-toolkit from 0.43.0 to 0.44.0
2024-11-13 14:50:46 +01:00
0d3aa44c5c chore: update generated content 2024-11-13 14:17:39 +01:00
a508bb356e build(deps): bump @docker/actions-toolkit from 0.43.0 to 0.44.0
Bumps [@docker/actions-toolkit](https://github.com/docker/actions-toolkit) from 0.43.0 to 0.44.0.
- [Release notes](https://github.com/docker/actions-toolkit/releases)
- [Commits](https://github.com/docker/actions-toolkit/compare/v0.43.0...v0.44.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-11-13 12:44:58 +00:00
3e94cecda0 Merge pull request #125 from crazy-max/dependabot/npm_and_yarn/docker/actions-toolkit-0.43.0
build(deps): bump @docker/actions-toolkit from 0.42.0 to 0.43.0
2024-11-07 17:25:03 +01:00
701f172a16 chore: update generated content 2024-11-07 17:03:18 +01:00
90aad53e72 build(deps): bump @docker/actions-toolkit from 0.42.0 to 0.43.0
Bumps [@docker/actions-toolkit](https://github.com/docker/actions-toolkit) from 0.42.0 to 0.43.0.
- [Release notes](https://github.com/docker/actions-toolkit/releases)
- [Commits](https://github.com/docker/actions-toolkit/compare/v0.42.0...v0.43.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-11-07 16:01:40 +00:00
a9ddd812ce Merge pull request #123 from crazy-max/dependabot/npm_and_yarn/docker/actions-toolkit-0.42.0
build(deps): bump @docker/actions-toolkit from 0.41.1 to 0.42.0
2024-11-05 16:45:43 +01:00
91cbfc7996 chore: update generated content 2024-10-30 16:30:03 +01:00
7de04ecfd0 build(deps): bump @docker/actions-toolkit from 0.41.1 to 0.42.0
Bumps [@docker/actions-toolkit](https://github.com/docker/actions-toolkit) from 0.41.1 to 0.42.0.
- [Release notes](https://github.com/docker/actions-toolkit/releases)
- [Commits](https://github.com/docker/actions-toolkit/compare/v0.41.1...v0.42.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-10-30 15:28:37 +00:00
8321f1dc18 Merge pull request #106 from vvoland/binimg
support downloading binaries from docker images
2024-10-30 12:40:04 +01:00
ff9a36b06e ci: matrix entry for image type 2024-10-30 11:26:50 +01:00
cd5049af64 Support downloading binaries from docker images
Signed-off-by: Paweł Gronowski <pawel.gronowski@docker.com>
2024-10-29 17:36:32 +01:00
810b53a8ba Merge pull request #122 from crazy-max/dependabot/npm_and_yarn/docker/actions-toolkit-0.41.1
build(deps): bump @docker/actions-toolkit from 0.40.0 to 0.41.1
2024-10-29 16:45:00 +01:00
ba5a8c50ed chore: update generated content 2024-10-29 16:29:19 +01:00
8677037d08 changed signature for install method 2024-10-29 16:27:21 +01:00
ff2661333b build(deps): bump @docker/actions-toolkit from 0.40.0 to 0.41.1
Bumps [@docker/actions-toolkit](https://github.com/docker/actions-toolkit) from 0.40.0 to 0.41.1.
- [Release notes](https://github.com/docker/actions-toolkit/releases)
- [Commits](https://github.com/docker/actions-toolkit/compare/v0.40.0...v0.41.1)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-10-29 15:26:43 +00:00
26145a578d Merge pull request #120 from crazy-max/remove-uuid
remove uuid package and switch to crypto
2024-10-28 15:43:21 +01:00
0692aeebfc chore: update generated content 2024-10-28 14:55:57 +01:00
47611ea40b remove uuid package and switch to crypto 2024-10-28 14:54:40 +01:00
7bb565780b Merge pull request #117 from crazy-max/dependabot/npm_and_yarn/docker/actions-toolkit-0.40.0
build(deps): bump @docker/actions-toolkit from 0.25.0 to 0.40.0
2024-10-27 20:11:26 +01:00
9794ac9406 chore: update generated content 2024-10-27 13:44:16 +01:00
701bc4e9ed build(deps): bump @docker/actions-toolkit from 0.25.0 to 0.40.0
Bumps [@docker/actions-toolkit](https://github.com/docker/actions-toolkit) from 0.25.0 to 0.40.0.
- [Release notes](https://github.com/docker/actions-toolkit/releases)
- [Commits](https://github.com/docker/actions-toolkit/compare/v0.25.0...v0.40.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-10-27 12:30:27 +00:00
958155397b Merge pull request #116 from crazy-max/dependabot/npm_and_yarn/fast-xml-parser-4.5.0
build(deps): bump fast-xml-parser from 4.4.0 to 4.5.0
2024-10-27 01:48:09 +02:00
de4e249b98 chore: update generated content 2024-10-27 01:28:52 +02:00
a2e96b1577 build(deps): bump fast-xml-parser from 4.4.0 to 4.5.0
Bumps [fast-xml-parser](https://github.com/NaturalIntelligence/fast-xml-parser) from 4.4.0 to 4.5.0.
- [Release notes](https://github.com/NaturalIntelligence/fast-xml-parser/releases)
- [Changelog](https://github.com/NaturalIntelligence/fast-xml-parser/blob/master/CHANGELOG.md)
- [Commits](https://github.com/NaturalIntelligence/fast-xml-parser/compare/v4.4.0...v4.5.0)

---
updated-dependencies:
- dependency-name: fast-xml-parser
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-10-26 23:16:07 +00:00
2e05eb17ec Merge pull request #107 from crazy-max/dependabot/npm_and_yarn/path-to-regexp-6.3.0
build(deps): bump path-to-regexp from 6.2.2 to 6.3.0
2024-10-27 01:13:54 +02:00
b52307508d build(deps): bump path-to-regexp from 6.2.2 to 6.3.0
Bumps [path-to-regexp](https://github.com/pillarjs/path-to-regexp) from 6.2.2 to 6.3.0.
- [Release notes](https://github.com/pillarjs/path-to-regexp/releases)
- [Changelog](https://github.com/pillarjs/path-to-regexp/blob/master/History.md)
- [Commits](https://github.com/pillarjs/path-to-regexp/compare/v6.2.2...v6.3.0)

---
updated-dependencies:
- dependency-name: path-to-regexp
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-10-26 22:43:36 +00:00
a3485f7b8f Merge pull request #113 from crazy-max/dependabot/npm_and_yarn/actions/core-1.11.1
build(deps): bump @actions/core from 1.10.1 to 1.11.1
2024-10-27 00:41:34 +02:00
1977c86a96 chore: update generated content 2024-10-27 00:28:17 +02:00
e98084b722 Merge pull request #115 from crazy-max/fix-dependabot
chore: ignore docker/actions-toolkit deps with dependabot
2024-10-08 16:04:08 +02:00
ca246a1805 chore: ignore docker/actions-toolkit deps with dependabot 2024-10-08 13:46:18 +02:00
40c64fb090 build(deps): bump @actions/core from 1.10.1 to 1.11.1
Bumps [@actions/core](https://github.com/actions/toolkit/tree/HEAD/packages/core) from 1.10.1 to 1.11.1.
- [Changelog](https://github.com/actions/toolkit/blob/main/packages/core/RELEASES.md)
- [Commits](https://github.com/actions/toolkit/commits/HEAD/packages/core)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-10-07 10:13:36 +00:00
4acbcb8479 Merge pull request #112 from crazy-max/ci-fix-macos
ci: enforce QEMU version on macOS
2024-10-04 15:26:40 +02:00
8f832606d8 docs: add extra step for QEMU issue 2024-10-04 15:17:51 +02:00
4f5bb9fcef ci: enforce QEMU version on macOS 2024-10-04 14:55:05 +02:00
da44386179 Merge pull request #105 from crazy-max/dependabot/npm_and_yarn/micromatch-4.0.8
build(deps): bump micromatch from 4.0.4 to 4.0.8
2024-09-06 13:07:54 +02:00
f4a5b99d88 build(deps): bump micromatch from 4.0.4 to 4.0.8
Bumps [micromatch](https://github.com/micromatch/micromatch) from 4.0.4 to 4.0.8.
- [Release notes](https://github.com/micromatch/micromatch/releases)
- [Changelog](https://github.com/micromatch/micromatch/blob/master/CHANGELOG.md)
- [Commits](https://github.com/micromatch/micromatch/compare/4.0.4...4.0.8)

---
updated-dependencies:
- dependency-name: micromatch
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-08-31 09:10:24 +00:00
c794b17d99 Merge pull request #90 from crazy-max/dependabot/npm_and_yarn/braces-3.0.3
build(deps): bump braces from 3.0.2 to 3.0.3
2024-08-14 15:17:31 +02:00
e188b1d368 build(deps): bump braces from 3.0.2 to 3.0.3
Bumps [braces](https://github.com/micromatch/braces) from 3.0.2 to 3.0.3.
- [Changelog](https://github.com/micromatch/braces/blob/master/CHANGELOG.md)
- [Commits](https://github.com/micromatch/braces/compare/3.0.2...3.0.3)

---
updated-dependencies:
- dependency-name: braces
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-06-20 14:28:15 +00:00
e0c95fcf69 Merge pull request #86 from crazy-max/dependabot/github_actions/docker/build-push-action-6
build(deps): bump docker/build-push-action from 5 to 6
2024-06-20 16:23:31 +02:00
25cb73f3c4 Merge pull request #85 from crazy-max/dependabot/github_actions/docker/bake-action-5
build(deps): bump docker/bake-action from 4 to 5
2024-06-20 16:23:22 +02:00
a93701ec9b build(deps): bump docker/build-push-action from 5 to 6
Bumps [docker/build-push-action](https://github.com/docker/build-push-action) from 5 to 6.
- [Release notes](https://github.com/docker/build-push-action/releases)
- [Commits](https://github.com/docker/build-push-action/compare/v5...v6)

---
updated-dependencies:
- dependency-name: docker/build-push-action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-06-17 10:08:17 +00:00
3a19e60609 build(deps): bump docker/bake-action from 4 to 5
Bumps [docker/bake-action](https://github.com/docker/bake-action) from 4 to 5.
- [Release notes](https://github.com/docker/bake-action/releases)
- [Commits](https://github.com/docker/bake-action/compare/v4...v5)

---
updated-dependencies:
- dependency-name: docker/bake-action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-06-17 10:08:14 +00:00
78318f8be5 Merge pull request #76 from crazy-max/dependabot/npm_and_yarn/undici-5.28.4
build(deps): bump undici from 5.26.3 to 5.28.4
2024-06-10 14:44:06 +02:00
54f3988321 chore: update generated content 2024-06-10 14:36:35 +02:00
f437b67409 build(deps): bump undici from 5.26.3 to 5.28.4
Bumps [undici](https://github.com/nodejs/undici) from 5.26.3 to 5.28.4.
- [Release notes](https://github.com/nodejs/undici/releases)
- [Commits](https://github.com/nodejs/undici/compare/v5.26.3...v5.28.4)

---
updated-dependencies:
- dependency-name: undici
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-06-10 12:35:37 +00:00
06b9bc80b3 Merge pull request #82 from crazy-max/dependabot/npm_and_yarn/uuid-10.0.0
build(deps): bump uuid from 9.0.1 to 10.0.0
2024-06-10 14:33:13 +02:00
a6fae2d4e8 chore: update generated content 2024-06-10 14:31:01 +02:00
a4ef905acc build(deps): bump uuid from 9.0.1 to 10.0.0
Bumps [uuid](https://github.com/uuidjs/uuid) from 9.0.1 to 10.0.0.
- [Changelog](https://github.com/uuidjs/uuid/blob/main/CHANGELOG.md)
- [Commits](https://github.com/uuidjs/uuid/compare/v9.0.1...v10.0.0)

---
updated-dependencies:
- dependency-name: uuid
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-06-10 12:22:36 +00:00
41a5151e81 Merge pull request #83 from crazy-max/dependabot/npm_and_yarn/docker/actions-toolkit-0.25.0
build(deps): bump @docker/actions-toolkit from 0.21.1 to 0.25.0
2024-06-10 14:21:39 +02:00
e96e0e2c98 ci: test install on linux without containerd 2024-06-10 13:54:52 +02:00
8d0a8e33ff chore: update generated content 2024-06-10 13:51:13 +02:00
9bd97ff018 build(deps): bump @docker/actions-toolkit from 0.21.1 to 0.25.0
Bumps [@docker/actions-toolkit](https://github.com/docker/actions-toolkit) from 0.21.1 to 0.25.0.
- [Release notes](https://github.com/docker/actions-toolkit/releases)
- [Commits](https://github.com/docker/actions-toolkit/compare/v0.21.1...v0.25.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-06-10 11:47:51 +00:00
bca5e4d3e2 Merge pull request #75 from crazy-max/dependabot/npm_and_yarn/tar-6.2.1
build(deps): bump tar from 6.2.0 to 6.2.1
2024-04-27 13:01:16 +02:00
031a2987b7 Merge pull request #74 from crazy-max/dependabot/npm_and_yarn/ip-2.0.1
build(deps): bump ip from 2.0.0 to 2.0.1
2024-04-27 13:01:06 +02:00
753106f35c Merge pull request #77 from crazy-max/dependabot/npm_and_yarn/babel/traverse-7.24.1
build(deps): bump @babel/traverse from 7.20.13 to 7.24.1
2024-04-27 13:00:59 +02:00
a1e4314d8f build(deps): bump @babel/traverse from 7.20.13 to 7.24.1
Bumps [@babel/traverse](https://github.com/babel/babel/tree/HEAD/packages/babel-traverse) from 7.20.13 to 7.24.1.
- [Release notes](https://github.com/babel/babel/releases)
- [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md)
- [Commits](https://github.com/babel/babel/commits/v7.24.1/packages/babel-traverse)

---
updated-dependencies:
- dependency-name: "@babel/traverse"
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-04-27 10:32:19 +00:00
a7f3aad3f5 build(deps): bump tar from 6.2.0 to 6.2.1
Bumps [tar](https://github.com/isaacs/node-tar) from 6.2.0 to 6.2.1.
- [Release notes](https://github.com/isaacs/node-tar/releases)
- [Changelog](https://github.com/isaacs/node-tar/blob/main/CHANGELOG.md)
- [Commits](https://github.com/isaacs/node-tar/compare/v6.2.0...v6.2.1)

---
updated-dependencies:
- dependency-name: tar
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-04-27 10:32:14 +00:00
faa196892b build(deps): bump ip from 2.0.0 to 2.0.1
Bumps [ip](https://github.com/indutny/node-ip) from 2.0.0 to 2.0.1.
- [Commits](https://github.com/indutny/node-ip/compare/v2.0.0...v2.0.1)

---
updated-dependencies:
- dependency-name: ip
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-04-27 10:32:14 +00:00
796ce734cb Merge pull request #73 from crazy-max/corepack
chore: use corepack to install yarn
2024-04-27 12:30:18 +02:00
3eb24de4f6 chore: use corepack to install yarn 2024-04-27 12:20:16 +02:00
17 changed files with 4135 additions and 1098 deletions

View File

@ -4,6 +4,11 @@ updates:
directory: "/"
schedule:
interval: "daily"
ignore:
# ignore this dependency
# it seems a bug with dependabot as pining to commit sha should not
# trigger a new version similar to https://github.com/docker/buildx/pull/2222#issuecomment-1919092153
- dependency-name: "docker/actions-toolkit"
labels:
- "dependencies"
- "bot"

View File

@ -17,7 +17,7 @@ on:
pull_request:
env:
DOCKER_VERSION: v24.0.9
DOCKER_VERSION: v27.3.1
jobs:
main:
@ -31,28 +31,17 @@ jobs:
- macos-13
- windows-latest
version:
- pinned
- latest
- v27.3.1
- type=image,tag=27.3.1
steps:
-
name: Checkout
uses: actions/checkout@v4
-
name: Set version
shell: bash
run: |
if [ "${{ matrix.version }}" != "pinned" ]; then
echo "DOCKER_VERSION=${{ matrix.version }}" >> $GITHUB_ENV
fi
-
name: Set up Docker
uses: ./
with:
version: ${{ env.DOCKER_VERSION }}
-
name: Dump context
if: always()
uses: crazy-max/ghaction-dump-context@v2
version: ${{ matrix.version }}
channel:
runs-on: ${{ matrix.os }}
@ -72,12 +61,8 @@ jobs:
name: Set up Docker
uses: ./
with:
version: v24.0.0-rc.4
version: ${{ env.DOCKER_VERSION }}
channel: test
-
name: Dump context
if: always()
uses: crazy-max/ghaction-dump-context@v2
daemon-config:
runs-on: ${{ matrix.os }}
@ -97,6 +82,7 @@ jobs:
name: Set up Docker
uses: ./
with:
version: ${{ env.DOCKER_VERSION }}
daemon-config: |
{
"debug": true,
@ -104,10 +90,6 @@ jobs:
"containerd-snapshotter": true
}
}
-
name: Dump context
if: always()
uses: crazy-max/ghaction-dump-context@v2
context:
runs-on: ${{ matrix.os }}
@ -133,10 +115,6 @@ jobs:
name: Check context
run: |
docker context inspect foo
-
name: Dump context
if: always()
uses: crazy-max/ghaction-dump-context@v2
lima-start-args:
#runs-on: macos-14 # no virt: https://github.com/docker/actions-toolkit/issues/317
@ -148,15 +126,28 @@ jobs:
-
name: Set up Docker
uses: ./
with:
version: ${{ env.DOCKER_VERSION }}
env:
LIMA_START_ARGS: --cpus 4 --memory 8
build-linux:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
containerd:
- containerd-system
- containerd-tarball
steps:
-
name: Checkout
uses: actions/checkout@v4
-
name: Uninstall containerd
if: matrix.containerd == 'containerd-tarball'
run: |
sudo apt-get remove -y containerd.io
-
name: Set up Docker
uses: ./
@ -174,7 +165,7 @@ jobs:
driver-opts: network=host
-
name: Build and push
uses: docker/build-push-action@v5
uses: docker/build-push-action@v6
with:
context: ./test
push: true
@ -184,10 +175,6 @@ jobs:
name: Inspect
run: |
docker buildx imagetools inspect localhost:5000/name/app:latest --format '{{json .}}'
-
name: Dump context
if: always()
uses: crazy-max/ghaction-dump-context@v2
build-macos:
runs-on: ${{ matrix.os }}
@ -197,7 +184,6 @@ jobs:
os:
#- macos-14 # no virt: https://github.com/docker/actions-toolkit/issues/317
- macos-13
- macos-12
steps:
-
name: Checkout
@ -219,7 +205,7 @@ jobs:
driver-opts: network=host
-
name: Build and push
uses: docker/build-push-action@v5
uses: docker/build-push-action@v6
with:
context: ./test
push: true
@ -229,10 +215,6 @@ jobs:
name: Inspect
run: |
docker buildx imagetools inspect localhost:5000/name/app:latest --format '{{json .}}'
-
name: Dump context
if: always()
uses: crazy-max/ghaction-dump-context@v2
build-windows:
runs-on: windows-latest
@ -254,10 +236,6 @@ jobs:
name: Inspect
run: |
docker image inspect test
-
name: Dump context
if: always()
uses: crazy-max/ghaction-dump-context@v2
set-host:
runs-on: ubuntu-latest
@ -269,12 +247,26 @@ jobs:
name: Set up Docker
uses: ./
with:
version: ${{ env.DOCKER_VERSION }}
set-host: true
-
name: List contexts
run: |
docker context ls
rootless:
runs-on: ubuntu-latest
steps:
-
name: Dump context
if: always()
uses: crazy-max/ghaction-dump-context@v2
name: Checkout
uses: actions/checkout@v4
-
name: Set up Docker
uses: ./
with:
version: ${{ env.DOCKER_VERSION }}
rootless: true
-
name: List contexts
run: |
docker context ls

View File

@ -20,12 +20,12 @@ jobs:
uses: actions/checkout@v4
-
name: Test
uses: docker/bake-action@v4
uses: docker/bake-action@v5
with:
targets: test
-
name: Upload coverage
uses: codecov/codecov-action@v4
uses: codecov/codecov-action@v5
with:
file: ./coverage/clover.xml
files: ./coverage/clover.xml
token: ${{ secrets.CODECOV_TOKEN }}

View File

@ -40,6 +40,6 @@ jobs:
uses: actions/checkout@v4
-
name: Validate
uses: docker/bake-action@v4
uses: docker/bake-action@v5
with:
targets: ${{ matrix.target }}

File diff suppressed because one or more lines are too long

View File

@ -11,5 +11,3 @@ nodeLinker: node-modules
plugins:
- path: .yarn/plugins/@yarnpkg/plugin-interactive-tools.cjs
spec: "@yarnpkg/plugin-interactive-tools"
yarnPath: .yarn/releases/yarn-3.6.3.cjs

View File

@ -112,6 +112,7 @@ The following inputs can be used as `step.with` keys
| `daemon-config` | String | | [Docker daemon JSON configuration](https://docs.docker.com/engine/reference/commandline/dockerd/#daemon-configuration-file) |
| `context` | String | `setup-docker-action` | Docker context name. |
| `set-host` | Bool | `false` | Set `DOCKER_HOST` environment variable to docker socket path. |
| `rootless` | Bool | `false` | Start daemon in rootless mode |
### outputs

View File

@ -19,12 +19,17 @@ describe('getInputs', () => {
new Map<string, string>([
['version', 'v24.0.8'],
['set-host', 'false'],
['rootless', 'false'],
]),
{
version: 'v24.0.8',
channel: '',
source: {
type: 'archive',
version: 'v24.0.8',
channel: 'stable'
},
context: '',
daemonConfig: '',
rootless: false,
setHost: false
} as context.Inputs
],
@ -36,12 +41,17 @@ describe('getInputs', () => {
['context', 'foo'],
['daemon-config', `{"debug":true,"features":{"containerd-snapshotter":true}}`],
['set-host', 'false'],
['rootless', 'false'],
]),
{
version: 'v24.0.0-rc.4',
channel: 'test',
source: {
type: 'archive',
version: 'v24.0.0-rc.4',
channel: 'test'
},
context: 'foo',
daemonConfig: `{"debug":true,"features":{"containerd-snapshotter":true}}`,
rootless: false,
setHost: false
} as context.Inputs
],
@ -49,15 +59,132 @@ describe('getInputs', () => {
2,
new Map<string, string>([
['set-host', 'true'],
['rootless', 'false'],
]),
{
version: 'latest',
channel: '',
source: {
type: 'archive',
version: 'latest',
channel: 'stable',
},
context: '',
daemonConfig: '',
rootless: false,
setHost: true
} as context.Inputs
]
],
[
3,
new Map<string, string>([
['version', 'type=image,tag=master'],
['context', 'foo'],
['daemon-config', `{"debug":true,"features":{"containerd-snapshotter":true}}`],
['set-host', 'false'],
['rootless', 'false'],
]),
{
source: {
type: 'image',
tag: 'master',
},
context: 'foo',
daemonConfig: `{"debug":true,"features":{"containerd-snapshotter":true}}`,
rootless: false,
setHost: false
} as context.Inputs
],
[
4,
new Map<string, string>([
['version', 'type=image'],
['set-host', 'false'],
['rootless', 'false'],
]),
{
source: {
type: 'image',
tag: 'latest',
},
context: '',
daemonConfig: '',
rootless: false,
setHost: false
} as context.Inputs
],
[
5,
new Map<string, string>([
['version', 'type=archive'],
['set-host', 'false'],
['rootless', 'false'],
]),
{
source: {
type: 'archive',
version: 'latest',
channel: 'stable',
},
setHost: false,
context: '',
daemonConfig: '',
rootless: false,
} as context.Inputs
],
[
6,
new Map<string, string>([
['version', 'version=v27.2.0,channel=test'],
['set-host', 'false'],
['rootless', 'false'],
]),
{
source: {
type: 'archive',
version: 'v27.2.0',
channel: 'test',
},
setHost: false,
context: '',
daemonConfig: '',
rootless: false,
} as context.Inputs
],
[
7,
new Map<string, string>([
['version', 'type=image,tag=27.2.1'],
['set-host', 'false'],
['rootless', 'false'],
]),
{
source: {
type: 'image',
tag: '27.2.1',
},
setHost: false,
context: '',
daemonConfig: '',
rootless: false,
} as context.Inputs
],
[
8,
new Map<string, string>([
['version', 'type=image,tag=27.2.1'],
['set-host', 'false'],
['rootless', 'true']
]),
{
source: {
type: 'image',
tag: '27.2.1',
},
setHost: false,
context: '',
daemonConfig: '',
rootless: true,
} as context.Inputs
],
])(
'[%d] given %p as inputs, returns %p',
async (num: number, inputs: Map<string, string>, expected: context.Inputs) => {

View File

@ -24,6 +24,10 @@ inputs:
description: 'Set DOCKER_HOST environment variable to docker socket path'
default: 'false'
required: false
rootless:
description: 'Enable Docker rootless mode'
default: 'false'
required: false
outputs:
sock:

View File

@ -4,8 +4,13 @@ ARG NODE_VERSION=20
FROM node:${NODE_VERSION}-alpine AS base
RUN apk add --no-cache cpio findutils git
RUN yarn config set --home enableTelemetry 0
WORKDIR /src
RUN --mount=type=bind,target=.,rw \
--mount=type=cache,target=/src/.yarn/cache <<EOT
corepack enable
yarn --version
yarn config set --home enableTelemetry 0
EOT
FROM base AS deps
RUN --mount=type=bind,target=.,rw \

87
dist/index.js generated vendored

File diff suppressed because one or more lines are too long

2
dist/index.js.map generated vendored

File diff suppressed because one or more lines are too long

2513
dist/licenses.txt generated vendored

File diff suppressed because it is too large Load Diff

View File

@ -26,9 +26,8 @@
"license": "Apache-2.0",
"packageManager": "yarn@3.6.3",
"dependencies": {
"@actions/core": "^1.10.1",
"@docker/actions-toolkit": "^0.21.1",
"uuid": "^9.0.1"
"@actions/core": "^1.11.1",
"@docker/actions-toolkit": "^0.46.0"
},
"devDependencies": {
"@types/node": "^20.6.0",

View File

@ -1,19 +1,98 @@
import * as core from '@actions/core';
import {InstallSource} from '@docker/actions-toolkit/lib/docker/install';
import {parse} from 'csv-parse/sync';
export interface Inputs {
version: string;
channel: string;
source: InstallSource;
daemonConfig?: string;
context: string;
setHost: boolean;
rootless: boolean;
}
export function getInputs(): Inputs {
const rawVersion = core.getInput('version') || 'latest';
const source = parseSource(rawVersion);
const channel = core.getInput('channel');
if (channel && source.type === 'archive') {
source.channel = channel;
}
return {
version: core.getInput('version') || 'latest',
channel: core.getInput('channel'),
source: source,
daemonConfig: core.getInput('daemon-config'),
context: core.getInput('context'),
setHost: core.getBooleanInput('set-host')
setHost: core.getBooleanInput('set-host'),
rootless: core.getBooleanInput('rootless')
};
}
function parseSource(input: string): InstallSource {
let [type, version, channel, tag] = ['archive', 'latest', 'stable', 'latest'];
const fields = parse(input, {
relaxColumnCount: true,
skipEmptyLines: true
})[0];
for (const field of fields) {
const parts = field
.toString()
.split(/(?<=^[^=]+?)=/)
.map(item => item.trim());
switch (parts[0]) {
case 'type':
type = parts[1];
break;
case 'version':
version = parts[1];
break;
case 'channel':
channel = parts[1];
break;
case 'tag':
tag = parts[1];
break;
default:
if (fields.length === 1) {
version = parts[0];
break;
}
throw new Error(`Invalid field: ${parts[0]}`);
}
}
if (!type) {
throw new Error(`Invalid type: ${type}`);
}
if (!channel) {
throw new Error(`Invalid channel: ${channel}`);
}
if (!version) {
throw new Error(`Invalid version: ${version}`);
}
if (!tag) {
throw new Error(`Invalid tag: ${tag}`);
}
let src: InstallSource;
switch (type) {
case 'archive':
src = {
type: 'archive',
version: version,
channel: channel
};
break;
case 'image':
src = {
type: 'image',
tag: tag
};
break;
default:
throw new Error(`Invalid version: ${input}`);
}
return src;
}

View File

@ -1,6 +1,6 @@
import * as crypto from 'crypto';
import os from 'os';
import path from 'path';
import * as uuid from 'uuid';
import * as core from '@actions/core';
import * as actionsToolkit from '@docker/actions-toolkit';
import {Install} from '@docker/actions-toolkit/lib/docker/install';
@ -13,7 +13,7 @@ actionsToolkit.run(
// main
async () => {
const input: context.Inputs = context.getInputs();
const runDir = path.join(os.homedir(), `setup-docker-action-${uuid.v4().slice(0, 8)}`);
const runDir = path.join(os.homedir(), `setup-docker-action-${crypto.randomUUID().slice(0, 8)}`);
if (input.context == 'default') {
throw new Error(`'default' context cannot be used.`);
@ -21,13 +21,13 @@ actionsToolkit.run(
const install = new Install({
runDir: runDir,
version: input.version,
channel: input.channel || 'stable',
source: input.source,
rootless: input.rootless,
contextName: input.context || 'setup-docker-action',
daemonConfig: input.daemonConfig
});
let toolDir;
if (!(await Docker.isAvailable()) || input.version) {
if (!(await Docker.isAvailable()) || input.source) {
await core.group(`Download docker`, async () => {
toolDir = await install.download();
});

1401
yarn.lock

File diff suppressed because it is too large Load Diff