mirror of
https://github.com/docker/setup-buildx-action
synced 2026-09-16 08:30:26 +00:00
Compare commits
1
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
95bdd913ce |
@@ -182,15 +182,6 @@ 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
|
||||
@@ -218,19 +209,11 @@ jobs:
|
||||
docker --context mycontext info
|
||||
-
|
||||
name: Set up Docker Buildx
|
||||
id: buildx
|
||||
uses: ./
|
||||
with:
|
||||
endpoint: ${{ matrix.endpoint }}
|
||||
-
|
||||
name: Build
|
||||
endpoint: mycontext
|
||||
env:
|
||||
BUILDER: ${{ steps.buildx.outputs.name }}
|
||||
run: |
|
||||
docker buildx build --builder "$BUILDER" - <<'EOF'
|
||||
FROM scratch
|
||||
LABEL test=endpoint
|
||||
EOF
|
||||
DOCKER_CONTEXT: mycontext
|
||||
|
||||
buildkitd-config:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
@@ -32,7 +32,7 @@ jobs:
|
||||
targets: test
|
||||
-
|
||||
name: Upload coverage
|
||||
uses: codecov/codecov-action@fb8b3582c8e4def4969c97caa2f19720cb33a72f # v7.0.0
|
||||
uses: codecov/codecov-action@0b35c9ecc4f0529d0eb674914510c22f85b196b4 # v7.1.0
|
||||
with:
|
||||
files: ./coverage/clover.xml
|
||||
token: ${{ secrets.CODECOV_TOKEN }}
|
||||
|
||||
+1
-1
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
-3
@@ -133,14 +133,12 @@ actionsToolkit.run(
|
||||
|
||||
if (!standalone && inputs.driver == 'docker-container') {
|
||||
const buildkitImages = new Set<string>();
|
||||
if (!builderExists && !inputs.endpoint) {
|
||||
if (!builderExists) {
|
||||
buildkitImages.add(resolveBuildKitImage(inputs.driverOpts));
|
||||
}
|
||||
for (const node of appendNodes) {
|
||||
if (!node.endpoint) {
|
||||
buildkitImages.add(resolveBuildKitImage(node['driver-opts']));
|
||||
}
|
||||
}
|
||||
if (buildkitImages.size > 0) {
|
||||
await core.group(`Pulling BuildKit image(s)`, async () => {
|
||||
for (const image of buildkitImages) {
|
||||
|
||||
Reference in New Issue
Block a user