mirror of
https://github.com/docker/setup-buildx-action.git
synced 2026-10-09 21:00:43 +09:00
Compare commits
5
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
fc24be1c98 | ||
|
|
5b17070462 | ||
|
|
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
|
||||||
|
|||||||
+72
-72
File diff suppressed because one or more lines are too long
+2
-2
File diff suppressed because one or more lines are too long
+1
-1
@@ -1793,7 +1793,7 @@ SOFTWARE.
|
|||||||
The following npm packages may be included in this product:
|
The following npm packages may be included in this product:
|
||||||
|
|
||||||
- js-yaml@5.4.1
|
- js-yaml@5.4.1
|
||||||
- js-yaml@5.4.2
|
- js-yaml@5.4.3
|
||||||
|
|
||||||
These packages each contain the following license:
|
These packages each contain the following license:
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -25,7 +25,7 @@
|
|||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@actions/core": "^3.0.1",
|
"@actions/core": "^3.0.1",
|
||||||
"@docker/actions-toolkit": "^0.100.0",
|
"@docker/actions-toolkit": "^0.100.0",
|
||||||
"js-yaml": "^5.4.2"
|
"js-yaml": "^5.4.3"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@eslint/js": "^9.39.3",
|
"@eslint/js": "^9.39.3",
|
||||||
|
|||||||
+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 () => {
|
||||||
|
|||||||
@@ -2850,7 +2850,7 @@ __metadata:
|
|||||||
eslint-plugin-prettier: "npm:^5.5.5"
|
eslint-plugin-prettier: "npm:^5.5.5"
|
||||||
generate-license-file: "npm:^4.1.1"
|
generate-license-file: "npm:^4.1.1"
|
||||||
globals: "npm:^17.3.0"
|
globals: "npm:^17.3.0"
|
||||||
js-yaml: "npm:^5.4.2"
|
js-yaml: "npm:^5.4.3"
|
||||||
prettier: "npm:^3.8.1"
|
prettier: "npm:^3.8.1"
|
||||||
typescript: "npm:^5.9.3"
|
typescript: "npm:^5.9.3"
|
||||||
vitest: "npm:^4.0.18"
|
vitest: "npm:^4.0.18"
|
||||||
@@ -4018,14 +4018,14 @@ __metadata:
|
|||||||
languageName: node
|
languageName: node
|
||||||
linkType: hard
|
linkType: hard
|
||||||
|
|
||||||
"js-yaml@npm:^5.4.2":
|
"js-yaml@npm:^5.4.3":
|
||||||
version: 5.4.2
|
version: 5.4.3
|
||||||
resolution: "js-yaml@npm:5.4.2"
|
resolution: "js-yaml@npm:5.4.3"
|
||||||
dependencies:
|
dependencies:
|
||||||
argparse: "npm:^2.0.1"
|
argparse: "npm:^2.0.1"
|
||||||
bin:
|
bin:
|
||||||
js-yaml: bin/js-yaml.mjs
|
js-yaml: bin/js-yaml.mjs
|
||||||
checksum: 10/f2461abd1d6268fb226733f0a0e0aa48004bb824116e3dfa75f1a1279001936343b672066dfecdb852ac3ca883452706c383a760aa90430cb68ba395aa2cbc84
|
checksum: 10/2409d1238efddc29ab62ddb26d70bc7f2e8b58b84eb8d41d09d50fab86f8670aa2fec5dc6c99ef71939acab5d7c0b3526f96bdd0055042aa0136cca749b20afc
|
||||||
languageName: node
|
languageName: node
|
||||||
linkType: hard
|
linkType: hard
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user