mirror of
https://gitea.com/docker/setup-buildx-action.git
synced 2026-09-24 13:34:36 +00:00
Compare commits
5 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| a42fc1bb2f | |||
| bb9e8b1bd4 | |||
| 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
|
||||||
|
|||||||
+5
-5
File diff suppressed because one or more lines are too long
+3
-3
File diff suppressed because one or more lines are too long
+3
-4
@@ -216,7 +216,7 @@ Apache License
|
|||||||
|
|
||||||
The following npm package may be included in this product:
|
The following npm package may be included in this product:
|
||||||
|
|
||||||
- @docker/actions-toolkit@0.100.0
|
- @docker/actions-toolkit@0.101.0
|
||||||
|
|
||||||
This package contains the following license:
|
This package contains the following license:
|
||||||
|
|
||||||
@@ -1790,12 +1790,11 @@ SOFTWARE.
|
|||||||
|
|
||||||
-----------
|
-----------
|
||||||
|
|
||||||
The following npm packages may be included in this product:
|
The following npm package may be included in this product:
|
||||||
|
|
||||||
- js-yaml@5.4.1
|
|
||||||
- js-yaml@5.4.2
|
- js-yaml@5.4.2
|
||||||
|
|
||||||
These packages each contain the following license:
|
This package contains the following license:
|
||||||
|
|
||||||
(The MIT License)
|
(The MIT License)
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -24,7 +24,7 @@
|
|||||||
"packageManager": "yarn@4.15.0",
|
"packageManager": "yarn@4.15.0",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@actions/core": "^3.0.1",
|
"@actions/core": "^3.0.1",
|
||||||
"@docker/actions-toolkit": "^0.100.0",
|
"@docker/actions-toolkit": "^0.101.0",
|
||||||
"js-yaml": "^5.4.2"
|
"js-yaml": "^5.4.2"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
|
|||||||
+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 () => {
|
||||||
|
|||||||
@@ -437,9 +437,9 @@ __metadata:
|
|||||||
languageName: node
|
languageName: node
|
||||||
linkType: hard
|
linkType: hard
|
||||||
|
|
||||||
"@docker/actions-toolkit@npm:^0.100.0":
|
"@docker/actions-toolkit@npm:^0.101.0":
|
||||||
version: 0.100.0
|
version: 0.101.0
|
||||||
resolution: "@docker/actions-toolkit@npm:0.100.0"
|
resolution: "@docker/actions-toolkit@npm:0.101.0"
|
||||||
dependencies:
|
dependencies:
|
||||||
"@actions/artifact": "npm:^6.2.1"
|
"@actions/artifact": "npm:^6.2.1"
|
||||||
"@actions/cache": "npm:^6.2.0"
|
"@actions/cache": "npm:^6.2.0"
|
||||||
@@ -457,12 +457,12 @@ __metadata:
|
|||||||
gunzip-maybe: "npm:^1.4.2"
|
gunzip-maybe: "npm:^1.4.2"
|
||||||
handlebars: "npm:^4.7.9"
|
handlebars: "npm:^4.7.9"
|
||||||
he: "npm:^1.2.0"
|
he: "npm:^1.2.0"
|
||||||
js-yaml: "npm:^5.4.1"
|
js-yaml: "npm:^5.4.2"
|
||||||
jwt-decode: "npm:^4.0.0"
|
jwt-decode: "npm:^4.0.0"
|
||||||
semver: "npm:^7.8.5"
|
semver: "npm:^7.8.5"
|
||||||
tar-stream: "npm:^3.2.1"
|
tar-stream: "npm:^3.2.1"
|
||||||
tmp: "npm:^0.2.7"
|
tmp: "npm:^0.2.7"
|
||||||
checksum: 10/74eaa1afb1887ed2974e403870205889844d42eb527550309819fd24b80484b92ebf95ba4ee01eef607b66acd655a8457fc25a6d27ff2f81e842705ff98b1976
|
checksum: 10/7e84b1ae9f515decf6863cb3f6dc67c1a0f83f76cf76d18506232276370cb92234094e657257b9d805f3722be0d6d5f0b871283c12f4889ec5d98f4378d42318
|
||||||
languageName: node
|
languageName: node
|
||||||
linkType: hard
|
linkType: hard
|
||||||
|
|
||||||
@@ -2836,7 +2836,7 @@ __metadata:
|
|||||||
resolution: "docker-setup-buildx@workspace:."
|
resolution: "docker-setup-buildx@workspace:."
|
||||||
dependencies:
|
dependencies:
|
||||||
"@actions/core": "npm:^3.0.1"
|
"@actions/core": "npm:^3.0.1"
|
||||||
"@docker/actions-toolkit": "npm:^0.100.0"
|
"@docker/actions-toolkit": "npm:^0.101.0"
|
||||||
"@eslint/js": "npm:^9.39.3"
|
"@eslint/js": "npm:^9.39.3"
|
||||||
"@types/js-yaml": "npm:^4.0.9"
|
"@types/js-yaml": "npm:^4.0.9"
|
||||||
"@types/node": "npm:^24.11.0"
|
"@types/node": "npm:^24.11.0"
|
||||||
@@ -4007,17 +4007,6 @@ __metadata:
|
|||||||
languageName: node
|
languageName: node
|
||||||
linkType: hard
|
linkType: hard
|
||||||
|
|
||||||
"js-yaml@npm:^5.4.1":
|
|
||||||
version: 5.4.1
|
|
||||||
resolution: "js-yaml@npm:5.4.1"
|
|
||||||
dependencies:
|
|
||||||
argparse: "npm:^2.0.1"
|
|
||||||
bin:
|
|
||||||
js-yaml: bin/js-yaml.mjs
|
|
||||||
checksum: 10/6fff9ee00bd59aeb7e1484b4281f5e927b117cbfbf3ffa6c0fef0c58519317eb61527e93c4aa70f417709229bc1eeed63cba773913577a64405975a72fba7180
|
|
||||||
languageName: node
|
|
||||||
linkType: hard
|
|
||||||
|
|
||||||
"js-yaml@npm:^5.4.2":
|
"js-yaml@npm:^5.4.2":
|
||||||
version: 5.4.2
|
version: 5.4.2
|
||||||
resolution: "js-yaml@npm:5.4.2"
|
resolution: "js-yaml@npm:5.4.2"
|
||||||
|
|||||||
Reference in New Issue
Block a user