30 lines
1.1 KiB
Markdown
30 lines
1.1 KiB
Markdown
By default, many Gitea runner environments do not include a Docker installation.<br/>
|
|
This can be problematic because Docker is required by many container-related workflows, including building, tagging, and publishing container images.
|
|
|
|
This action installs Docker when required and optionally configures Docker Buildx for modern image build workflows. Existing Docker installations are automatically detected and reused.
|
|
This allows container-based workflows to run consistently across Gitea runners without requiring every repository to implement its own Docker setup logic.
|
|
|
|
|
|
## Inputs
|
|
|
|
| Name | Description | Default |
|
|
|------|-------------|---------|
|
|
| `setup-buildx` | Configure Docker Buildx after Docker installation. | `true` |
|
|
|
|
## Usage
|
|
|
|
### Install Docker with Buildx (default)
|
|
```yaml
|
|
- name: Setup docker
|
|
uses: https://git.claeyscloud.com/david/gitea-actions/setup-docker@main
|
|
``
|
|
|
|
### Install Docker without Buildx
|
|
|
|
```yaml
|
|
- name: Setup Docker
|
|
uses: https://git.claeyscloud.com/david/gitea-actions/setup-docker@main
|
|
with:
|
|
setup-buildx: false
|
|
```
|
|
This installs Docker if required but skips Docker Buildx configuration |