Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
source_repo: hoverkraft-tech/ci-github-container
source_path: CONTRIBUTING.md
source_branch: main
source_run_id: 24227868893
last_synced: 2026-04-10T05:29:38.456Z
source_run_id: 24253765536
last_synced: 2026-04-10T16:51:50.902Z
---

# Contributing
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ description: Documentation for Ci Github Container
Documentation for the Ci Github Container project.

**Source Repository:** [hoverkraft-tech/ci-github-container](https://github.com/hoverkraft-tech/ci-github-container)
**Last Synced:** 2026-04-10T05:29:38.456Z
**Last Synced:** 2026-04-10T16:51:50.902Z
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ title: Build Image
source_repo: hoverkraft-tech/ci-github-container
source_path: actions/docker/build-image/README.md
source_branch: main
source_run_id: 24227868893
last_synced: 2026-04-10T05:29:38.456Z
source_run_id: 24253765536
last_synced: 2026-04-10T16:51:50.902Z
---

<!-- header:start -->
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ title: Clean Images
source_repo: hoverkraft-tech/ci-github-container
source_path: actions/docker/clean-images/README.md
source_branch: main
source_run_id: 24227868893
last_synced: 2026-04-10T05:29:38.456Z
source_run_id: 24253765536
last_synced: 2026-04-10T16:51:50.902Z
---

<!-- header:start -->
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,106 @@
---
title: Cleanup Builder
source_repo: hoverkraft-tech/ci-github-container
source_path: actions/docker/cleanup-builder/README.md
source_branch: main
source_run_id: 24253765536
last_synced: 2026-04-10T16:51:50.902Z
---

<!-- header:start -->

# ![Icon](data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgdmlld0JveD0iMCAwIDI0IDI0IiBmaWxsPSJub25lIiBzdHJva2U9ImN1cnJlbnRDb2xvciIgc3Ryb2tlLXdpZHRoPSIyIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiIGNsYXNzPSJmZWF0aGVyIGZlYXRoZXItdHJhc2gtMiIgY29sb3I9ImJsdWUiPjxwb2x5bGluZSBwb2ludHM9IjMgNiA1IDYgMjEgNiI+PC9wb2x5bGluZT48cGF0aCBkPSJNMTkgNnYxNGEyIDIgMCAwIDEtMiAySDdhMiAyIDAgMCAxLTItMlY2bTMgMFY0YTIgMiAwIDAgMSAyLTJoNGEyIDIgMCAwIDEgMiAydjIiPjwvcGF0aD48bGluZSB4MT0iMTAiIHkxPSIxMSIgeDI9IjEwIiB5Mj0iMTciPjwvbGluZT48bGluZSB4MT0iMTQiIHkxPSIxMSIgeDI9IjE0IiB5Mj0iMTciPjwvbGluZT48L3N2Zz4=) GitHub Action: Docker - Cleanup builder

<div align="center">
<img src="/ci-github-container/assets/github/logo.svg" width="60px" align="center" alt="Docker - Cleanup builder" />
</div>

---

<!-- header:end -->
<!-- overview:start -->

## Overview

Register a post-job step that removes a Docker Buildx builder after later post steps have finished.

<!-- overview:end -->
<!-- usage:start -->

## Usage

```yaml
- uses: hoverkraft-tech/ci-github-container/actions/docker/cleanup-builder@bcbbcaff24e053e38ebab02dd0e41442df196719 # 0.32.0
with:
# Docker Buildx builder name to remove during post-job cleanup.
builder: ""

# Whether cleanup should run during the post-job phase.
# Default: `true`
enabled: true
```

<!-- usage:end -->
<!-- inputs:start -->

## Inputs

| **Input** | **Description** | **Required** | **Default** |
| ------------- | ------------------------------------------------------------- | ------------ | ----------- |
| **`builder`** | Docker Buildx builder name to remove during post-job cleanup. | **false** | - |
| **`enabled`** | Whether cleanup should run during the post-job phase. | **false** | `true` |

<!-- inputs:end -->

## Notes

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).

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.

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.

<!-- contributing:start -->

## Contributing

Contributions are welcome! Please see the [contributing guidelines](https://github.com/hoverkraft-tech/ci-github-container/blob/main/CONTRIBUTING.md) for more details.

<!-- contributing:end -->
<!-- license:start -->

## License

This project is licensed under the MIT License.

SPDX-License-Identifier: MIT

Copyright © 2026 hoverkraft

For more details, see the [license](http://choosealicense.com/licenses/mit/).

<!-- license:end -->
<!-- badges:start -->

[![Marketplace](https://img.shields.io/badge/Marketplace-docker------cleanup--builder-blue?logo=github-actions)](https://github.com/marketplace/actions/docker---cleanup-builder)
[![Release](https://img.shields.io/github/v/release/hoverkraft-tech/ci-github-container)](https://github.com/hoverkraft-tech/ci-github-container/releases)
[![License](https://img.shields.io/github/license/hoverkraft-tech/ci-github-container)](http://choosealicense.com/licenses/mit/)
[![Stars](https://img.shields.io/github/stars/hoverkraft-tech/ci-github-container?style=social)](https://img.shields.io/github/stars/hoverkraft-tech/ci-github-container?style=social)
[![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg)](https://github.com/hoverkraft-tech/ci-github-container/blob/main/CONTRIBUTING.md)

<!-- badges:end -->
<!-- secrets:start -->
<!-- secrets:end -->
<!-- outputs:start -->
<!-- outputs:end -->
<!-- examples:start -->
<!-- examples:end -->
<!-- security:start -->
<!-- security:end -->
<!-- generated:start -->

---

This documentation was automatically generated by [CI Dokumentor](https://github.com/hoverkraft-tech/ci-dokumentor).

<!-- generated:end -->
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ title: Create Images Manifests
source_repo: hoverkraft-tech/ci-github-container
source_path: actions/docker/create-images-manifests/README.md
source_branch: main
source_run_id: 24227868893
last_synced: 2026-04-10T05:29:38.456Z
source_run_id: 24253765536
last_synced: 2026-04-10T16:51:50.902Z
---

<!-- header:start -->
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ title: Get Image Metadata
source_repo: hoverkraft-tech/ci-github-container
source_path: actions/docker/get-image-metadata/README.md
source_branch: main
source_run_id: 24227868893
last_synced: 2026-04-10T05:29:38.456Z
source_run_id: 24253765536
last_synced: 2026-04-10T16:51:50.902Z
---

<!-- header:start -->
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ title: Get Image Name
source_repo: hoverkraft-tech/ci-github-container
source_path: actions/docker/get-image-name/README.md
source_branch: main
source_run_id: 24227868893
last_synced: 2026-04-10T05:29:38.456Z
source_run_id: 24253765536
last_synced: 2026-04-10T16:51:50.902Z
---

<!-- header:start -->
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ title: Prune Pull Requests Image Tags
source_repo: hoverkraft-tech/ci-github-container
source_path: actions/docker/prune-pull-requests-image-tags/README.md
source_branch: main
source_run_id: 24227868893
last_synced: 2026-04-10T05:29:38.456Z
source_run_id: 24253765536
last_synced: 2026-04-10T16:51:50.902Z
---

<!-- header:start -->
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ title: Setup
source_repo: hoverkraft-tech/ci-github-container
source_path: actions/docker/setup/README.md
source_branch: main
source_run_id: 24227868893
last_synced: 2026-04-10T05:29:38.456Z
source_run_id: 24253765536
last_synced: 2026-04-10T16:51:50.902Z
---

<!-- header:start -->
Expand Down Expand Up @@ -75,6 +75,11 @@ Shared action to configure Docker tooling and OCI registry authentication.
#
# Default: `true`
setup-buildx: true

# Whether the Buildx builder should be removed during post-job cleanup.
#
# Default: `true`
buildx-cleanup: true
````

<!-- usage:end -->
Expand All @@ -98,6 +103,7 @@ Shared action to configure Docker tooling and OCI registry authentication.
| **`built-images`** | Optional built images payload used to resolve manifest publication registries. | **false** | - |
| | When provided, registry authentication targets are inferred from the built image data. | | |
| **`setup-buildx`** | Whether to install and configure Docker Buildx. | **false** | `true` |
| **`buildx-cleanup`** | Whether the Buildx builder should be removed during post-job cleanup. | **false** | `true` |

<!-- inputs:end -->

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ title: Sign Images
source_repo: hoverkraft-tech/ci-github-container
source_path: actions/docker/sign-images/README.md
source_branch: main
source_run_id: 24227868893
last_synced: 2026-04-10T05:29:38.456Z
source_run_id: 24253765536
last_synced: 2026-04-10T16:51:50.902Z
---

<!-- header:start -->
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ title: Generate Docs
source_repo: hoverkraft-tech/ci-github-container
source_path: actions/helm/generate-docs/README.md
source_branch: main
source_run_id: 24227868893
last_synced: 2026-04-10T05:29:38.456Z
source_run_id: 24253765536
last_synced: 2026-04-10T16:51:50.902Z
---

<!-- header:start -->
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ title: Parse Chart Uri
source_repo: hoverkraft-tech/ci-github-container
source_path: actions/helm/parse-chart-uri/README.md
source_branch: main
source_run_id: 24227868893
last_synced: 2026-04-10T05:29:38.456Z
source_run_id: 24253765536
last_synced: 2026-04-10T16:51:50.902Z
---

<!-- header:start -->
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ title: Release Chart
source_repo: hoverkraft-tech/ci-github-container
source_path: actions/helm/release-chart/README.md
source_branch: main
source_run_id: 24227868893
last_synced: 2026-04-10T05:29:38.456Z
source_run_id: 24253765536
last_synced: 2026-04-10T16:51:50.902Z
---

<!-- header:start -->
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ title: Test Chart
source_repo: hoverkraft-tech/ci-github-container
source_path: actions/helm/test-chart/README.md
source_branch: main
source_run_id: 24227868893
last_synced: 2026-04-10T05:29:38.456Z
source_run_id: 24253765536
last_synced: 2026-04-10T16:51:50.902Z
---

<!-- header:start -->
Expand Down Expand Up @@ -43,7 +43,7 @@ Mainly using [helm/chart-testing-action](https://github.com/helm/chart-testing-a
## Usage

````yaml
- uses: hoverkraft-tech/ci-github-container/actions/helm/test-chart@a0bab9151cc074af9f6c8204ab42a48d2d570379 # 0.30.6
- uses: hoverkraft-tech/ci-github-container/actions/helm/test-chart@bcbbcaff24e053e38ebab02dd0e41442df196719 # 0.32.0
with:
# Working directory
# Default: `${{ github.workspace }}`
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
source_repo: hoverkraft-tech/ci-github-container
source_path: .github/workflows/docker-build-images.md
source_branch: main
source_run_id: 24227868893
last_synced: 2026-04-10T05:29:38.456Z
source_run_id: 24253765536
last_synced: 2026-04-10T16:51:50.902Z
---

<!-- header:start -->
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
source_repo: hoverkraft-tech/ci-github-container
source_path: .github/workflows/prune-pull-requests-images-tags.md
source_branch: main
source_run_id: 24227868893
last_synced: 2026-04-10T05:29:38.456Z
source_run_id: 24253765536
last_synced: 2026-04-10T16:51:50.902Z
---

<!-- header:start -->
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ title: Ci Github Container
source_repo: hoverkraft-tech/ci-github-container
source_path: README.md
source_branch: main
source_run_id: 24227868893
last_synced: 2026-04-10T05:29:38.456Z
source_run_id: 24253765536
last_synced: 2026-04-10T16:51:50.902Z
---

<!-- markdownlint-disable-next-line first-line-heading -->
Expand Down Expand Up @@ -33,6 +33,8 @@ _Actions that operate on OCI images across their build, metadata, and lifecycle

#### - [Build image](actions/docker/build-image/index.md)

#### - [Cleanup builder](actions/docker/cleanup-builder/index.md)

#### - [Clean images](actions/docker/clean-images/index.md)

#### - [Create images manifests](actions/docker/create-images-manifests/index.md)
Expand Down
Loading
Loading