mirror of
https://gitea.com/docker/setup-buildx-action.git
synced 2026-09-23 13:04:36 +00:00
Compare commits
5 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| a42fc1bb2f | |||
| bb9e8b1bd4 | |||
| f87e5991a6 | |||
| e7002743e0 | |||
| 3061c919c6 |
@@ -182,6 +182,15 @@ jobs:
|
||||
|
||||
endpoint:
|
||||
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:
|
||||
dind:
|
||||
image: docker:29.3-dind@sha256:4d90f1f6c400315c2dba96d3ec93c01e64198395cbba04f79d12adce4f737029
|
||||
@@ -209,11 +218,19 @@ jobs:
|
||||
docker --context mycontext info
|
||||
-
|
||||
name: Set up Docker Buildx
|
||||
id: buildx
|
||||
uses: ./
|
||||
with:
|
||||
endpoint: mycontext
|
||||
endpoint: ${{ matrix.endpoint }}
|
||||
-
|
||||
name: Build
|
||||
env:
|
||||
DOCKER_CONTEXT: mycontext
|
||||
BUILDER: ${{ steps.buildx.outputs.name }}
|
||||
run: |
|
||||
docker buildx build --builder "$BUILDER" - <<'EOF'
|
||||
FROM scratch
|
||||
LABEL test=endpoint
|
||||
EOF
|
||||
|
||||
buildkitd-config:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
@@ -32,7 +32,7 @@ jobs:
|
||||
targets: test
|
||||
-
|
||||
name: Upload coverage
|
||||
uses: codecov/codecov-action@0b35c9ecc4f0529d0eb674914510c22f85b196b4 # v7.1.0
|
||||
uses: codecov/codecov-action@fb8b3582c8e4def4969c97caa2f19720cb33a72f # v7.0.0
|
||||
with:
|
||||
files: ./coverage/clover.xml
|
||||
token: ${{ secrets.CODECOV_TOKEN }}
|
||||
|
||||
+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:
|
||||
|
||||
- @docker/actions-toolkit@0.100.0
|
||||
- @docker/actions-toolkit@0.101.0
|
||||
|
||||
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
|
||||
|
||||
These packages each contain the following license:
|
||||
This package contains the following license:
|
||||
|
||||
(The MIT License)
|
||||
|
||||
|
||||
+1
-1
@@ -24,7 +24,7 @@
|
||||
"packageManager": "yarn@4.15.0",
|
||||
"dependencies": {
|
||||
"@actions/core": "^3.0.1",
|
||||
"@docker/actions-toolkit": "^0.100.0",
|
||||
"@docker/actions-toolkit": "^0.101.0",
|
||||
"js-yaml": "^5.4.2"
|
||||
},
|
||||
"devDependencies": {
|
||||
|
||||
+4
-2
@@ -133,11 +133,13 @@ actionsToolkit.run(
|
||||
|
||||
if (!standalone && inputs.driver == 'docker-container') {
|
||||
const buildkitImages = new Set<string>();
|
||||
if (!builderExists) {
|
||||
if (!builderExists && !inputs.endpoint) {
|
||||
buildkitImages.add(resolveBuildKitImage(inputs.driverOpts));
|
||||
}
|
||||
for (const node of appendNodes) {
|
||||
buildkitImages.add(resolveBuildKitImage(node['driver-opts']));
|
||||
if (!node.endpoint) {
|
||||
buildkitImages.add(resolveBuildKitImage(node['driver-opts']));
|
||||
}
|
||||
}
|
||||
if (buildkitImages.size > 0) {
|
||||
await core.group(`Pulling BuildKit image(s)`, async () => {
|
||||
|
||||
@@ -437,9 +437,9 @@ __metadata:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@docker/actions-toolkit@npm:^0.100.0":
|
||||
version: 0.100.0
|
||||
resolution: "@docker/actions-toolkit@npm:0.100.0"
|
||||
"@docker/actions-toolkit@npm:^0.101.0":
|
||||
version: 0.101.0
|
||||
resolution: "@docker/actions-toolkit@npm:0.101.0"
|
||||
dependencies:
|
||||
"@actions/artifact": "npm:^6.2.1"
|
||||
"@actions/cache": "npm:^6.2.0"
|
||||
@@ -457,12 +457,12 @@ __metadata:
|
||||
gunzip-maybe: "npm:^1.4.2"
|
||||
handlebars: "npm:^4.7.9"
|
||||
he: "npm:^1.2.0"
|
||||
js-yaml: "npm:^5.4.1"
|
||||
js-yaml: "npm:^5.4.2"
|
||||
jwt-decode: "npm:^4.0.0"
|
||||
semver: "npm:^7.8.5"
|
||||
tar-stream: "npm:^3.2.1"
|
||||
tmp: "npm:^0.2.7"
|
||||
checksum: 10/74eaa1afb1887ed2974e403870205889844d42eb527550309819fd24b80484b92ebf95ba4ee01eef607b66acd655a8457fc25a6d27ff2f81e842705ff98b1976
|
||||
checksum: 10/7e84b1ae9f515decf6863cb3f6dc67c1a0f83f76cf76d18506232276370cb92234094e657257b9d805f3722be0d6d5f0b871283c12f4889ec5d98f4378d42318
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
@@ -2836,7 +2836,7 @@ __metadata:
|
||||
resolution: "docker-setup-buildx@workspace:."
|
||||
dependencies:
|
||||
"@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"
|
||||
"@types/js-yaml": "npm:^4.0.9"
|
||||
"@types/node": "npm:^24.11.0"
|
||||
@@ -4007,17 +4007,6 @@ __metadata:
|
||||
languageName: node
|
||||
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":
|
||||
version: 5.4.2
|
||||
resolution: "js-yaml@npm:5.4.2"
|
||||
|
||||
Reference in New Issue
Block a user