Files
gitea-actions/setup-docker/README.md
T
2026-07-22 09:08:07 +02:00

30 lines
1.2 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 (using the script at https://get.docker.com) when required and optionally configures Docker Buildx for modern image build workflows. Existing Docker installations are automatically detected and reused.<br/>
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