update documentation and update setup docker action
This commit is contained in:
+21
-1
@@ -1,10 +1,30 @@
|
||||
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 the required dependencies before invoking the underlying action, making it easier to run Docker-based workflows on Gitea runners without duplicating setup steps in every repository.
|
||||
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
|
||||
Reference in New Issue
Block a user