From 647a3b5e5acc86264396ce8d170dbe1197de9735 Mon Sep 17 00:00:00 2001 From: David Claeys Date: Tue, 21 Jul 2026 10:27:05 +0200 Subject: [PATCH] add setup docker action --- dockerhub-description/README.md | 1 + setup-docker/README.md | 10 ++++++++++ setup-docker/action.yaml | 22 ++++++++++++++++++++++ 3 files changed, 33 insertions(+) create mode 100644 setup-docker/README.md create mode 100644 setup-docker/action.yaml diff --git a/dockerhub-description/README.md b/dockerhub-description/README.md index 689016e..221ba9f 100644 --- a/dockerhub-description/README.md +++ b/dockerhub-description/README.md @@ -6,6 +6,7 @@ The wrapper then invokes the upstream action using the same inputs, making it a usage: ```yaml +name: Update docker hub description uses: https://git.claeyscloud.com/david/gitea-actions/dockerhub-description@main with: username: username diff --git a/setup-docker/README.md b/setup-docker/README.md new file mode 100644 index 0000000..0336574 --- /dev/null +++ b/setup-docker/README.md @@ -0,0 +1,10 @@ +By default, many Gitea runner environments do not include a Docker installation.
+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 +`` diff --git a/setup-docker/action.yaml b/setup-docker/action.yaml new file mode 100644 index 0000000..1faedb4 --- /dev/null +++ b/setup-docker/action.yaml @@ -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 \ No newline at end of file