mirror of
https://github.com/docker/setup-buildx-action.git
synced 2026-11-16 23:15:05 +08:00
skip BuildKit image pre-pulls for explicit endpoints
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
This commit is contained in:
parent
594f3bf428
commit
3061c919c6
2 changed files with 23 additions and 4 deletions
|
|
@ -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 () => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue