mirror of
https://github.com/docker/setup-buildx-action
synced 2026-09-29 19:26:25 +08:00
Compare commits
5
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
5f85460ffe | ||
|
|
296adc0cd9 | ||
|
|
f87e5991a6 | ||
|
|
e7002743e0 | ||
|
|
3061c919c6 |
@@ -182,6 +182,15 @@ jobs:
|
|||||||
|
|
||||||
endpoint:
|
endpoint:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
strategy:
|
||||||
|
fail-fast: false
|
||||||
|
matrix:
|
||||||
|
endpoint:
|
||||||
|
- mycontext
|
||||||
|
- tcp://127.0.0.1:2375
|
||||||
|
env:
|
||||||
|
# only the explicit endpoint should provide access to a daemon.
|
||||||
|
DOCKER_HOST: unix:///tmp/nonexistent-docker.sock
|
||||||
services:
|
services:
|
||||||
dind:
|
dind:
|
||||||
image: docker:29.3-dind@sha256:4d90f1f6c400315c2dba96d3ec93c01e64198395cbba04f79d12adce4f737029
|
image: docker:29.3-dind@sha256:4d90f1f6c400315c2dba96d3ec93c01e64198395cbba04f79d12adce4f737029
|
||||||
@@ -209,11 +218,19 @@ jobs:
|
|||||||
docker --context mycontext info
|
docker --context mycontext info
|
||||||
-
|
-
|
||||||
name: Set up Docker Buildx
|
name: Set up Docker Buildx
|
||||||
|
id: buildx
|
||||||
uses: ./
|
uses: ./
|
||||||
with:
|
with:
|
||||||
endpoint: mycontext
|
endpoint: ${{ matrix.endpoint }}
|
||||||
|
-
|
||||||
|
name: Build
|
||||||
env:
|
env:
|
||||||
DOCKER_CONTEXT: mycontext
|
BUILDER: ${{ steps.buildx.outputs.name }}
|
||||||
|
run: |
|
||||||
|
docker buildx build --builder "$BUILDER" - <<'EOF'
|
||||||
|
FROM scratch
|
||||||
|
LABEL test=endpoint
|
||||||
|
EOF
|
||||||
|
|
||||||
buildkitd-config:
|
buildkitd-config:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|||||||
+104
-104
File diff suppressed because one or more lines are too long
+3
-3
File diff suppressed because one or more lines are too long
+1
-1
@@ -3602,7 +3602,7 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI
|
|||||||
|
|
||||||
The following npm package may be included in this product:
|
The following npm package may be included in this product:
|
||||||
|
|
||||||
- undici@6.28.0
|
- undici@6.29.0
|
||||||
|
|
||||||
This package contains the following license:
|
This package contains the following license:
|
||||||
|
|
||||||
|
|||||||
+4
-2
@@ -133,11 +133,13 @@ actionsToolkit.run(
|
|||||||
|
|
||||||
if (!standalone && inputs.driver == 'docker-container') {
|
if (!standalone && inputs.driver == 'docker-container') {
|
||||||
const buildkitImages = new Set<string>();
|
const buildkitImages = new Set<string>();
|
||||||
if (!builderExists) {
|
if (!builderExists && !inputs.endpoint) {
|
||||||
buildkitImages.add(resolveBuildKitImage(inputs.driverOpts));
|
buildkitImages.add(resolveBuildKitImage(inputs.driverOpts));
|
||||||
}
|
}
|
||||||
for (const node of appendNodes) {
|
for (const node of appendNodes) {
|
||||||
buildkitImages.add(resolveBuildKitImage(node['driver-opts']));
|
if (!node.endpoint) {
|
||||||
|
buildkitImages.add(resolveBuildKitImage(node['driver-opts']));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if (buildkitImages.size > 0) {
|
if (buildkitImages.size > 0) {
|
||||||
await core.group(`Pulling BuildKit image(s)`, async () => {
|
await core.group(`Pulling BuildKit image(s)`, async () => {
|
||||||
|
|||||||
@@ -5889,9 +5889,9 @@ __metadata:
|
|||||||
linkType: hard
|
linkType: hard
|
||||||
|
|
||||||
"undici@npm:^6.23.0, undici@npm:^6.25.0":
|
"undici@npm:^6.23.0, undici@npm:^6.25.0":
|
||||||
version: 6.28.0
|
version: 6.29.0
|
||||||
resolution: "undici@npm:6.28.0"
|
resolution: "undici@npm:6.29.0"
|
||||||
checksum: 10/672a7a53bd1f6c80edb73b357ab36e98ef9e474024c442aab2b8ea2bc32f1103cab05525c78661ae724f3e1340e23d03efb9730fba28e76218ab0ec52e15d75a
|
checksum: 10/fd4969cfc846cb4da7f7b1b225536d629e17b17b4a1913287f1264f30c855b9eb65a6da6cde46ba1ddfe42f113a3969ab2697029c2b920401be2b7b3b40abef8
|
||||||
languageName: node
|
languageName: node
|
||||||
linkType: hard
|
linkType: hard
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user