You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Registers a post-job step that removes a Docker Buildx builder after later post-job hooks have finished.
17
+
This action exists as a workaround for GitHub Actions post-step ordering behavior with composite actions, where the effective cleanup order may not match the visible reverse order of YAML steps.
| **`builder`** | Docker Buildx builder name to remove during post-job cleanup. | **false** | - |
39
+
| **`enabled`** | Whether cleanup should run during the post-job phase. | **false** | `true` |
40
+
41
+
<!-- inputs:end -->
42
+
43
+
## Notes
44
+
45
+
Use this action before other actions whose post-job hooks still need the builder. It is intended as a workaround for GitHub Actions runner behavior around post-step ordering in composite actions. See [actions/runner#1657](https://github.com/actions/runner/issues/1657).
46
+
47
+
In practice, this means the built-in `docker/setup-buildx-action` cleanup can run too early for actions such as `docker/build-push-action` or `reproducible-containers/buildkit-cache-dance` that still access the builder during their own post-job hooks.
48
+
49
+
This action works by registering its cleanup post hook earlier, so the runner executes it later than the post hooks that still need the builder.
50
+
51
+
<!-- contributing:start -->
52
+
53
+
## Contributing
54
+
55
+
Contributions are welcome! Please see the [contributing guidelines](https://github.com/hoverkraft-tech/ci-github-container/blob/main/CONTRIBUTING.md) for more details.
0 commit comments