add setup docker action

This commit is contained in:
2026-07-21 10:27:05 +02:00
parent 96267352be
commit 647a3b5e5a
3 changed files with 33 additions and 0 deletions
+10
View File
@@ -0,0 +1,10 @@
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.
```yaml
- name: Setup docker
uses: https://git.claeyscloud.com/david/gitea-actions/setup-docker@main
``
+22
View File
@@ -0,0 +1,22 @@
name: Setup Docker
description: |
Install Docker on the runner environment
This action uses Docker's official convenience installation script at https://get.docker.com/
runs:
using: composite
steps:
- name: Install Docker
shell: bash
run: |
echo "Checking docker installation"
if command -v docker &> /dev/null; then
echo "Docker installation found"
else
echo "Docker installation not found. Docker will be installed"
curl -fsSL https://get.docker.com | sh
echo "Docker installed:"
docker --version
fi