refactoring act-runner-network-stack, added action kubectl-setup
Some checks failed
/ build-docker-image (push) Failing after 8s

This commit is contained in:
2025-11-22 13:11:53 +00:00
parent 2f37fa6f8d
commit ce26f9df92
4 changed files with 113 additions and 17 deletions

View File

@@ -5,9 +5,9 @@
- [Gitea dump from docker host](#gitea-dump-from-docker-host)
- [nginx](#nginx)
- [act runner](#act-runner)
- [custom image - with ansible](#custom-image---with-ansible)
- [Official Docker Image](#official-docker-image)
- [Docker compose](#docker-compose)
- [act runner (Official)](#act-runner-official)
- [Docker Compose](#docker-compose)
- [custom act runner - gitea/act\_runner:0.2.13-network-stack](#custom-act-runner---giteaact_runner0213-network-stack)
- [Other References](#other-references)
## Links
@@ -55,16 +55,9 @@ sudo docker exec -u git -it -w /tmp gitea bash -c '/app/gitea/gitea dump -d post
## act runner
### custom image - with ansible
### act runner (Official)
[Docker Image](/kb/-/packages/container/gitea%2Fact-runner_ansible/0.2.11)
[Dockerfile](./docker/act-runner/ansible/Dockerfile)
### Official Docker Image
#### Docker compose
#### Docker Compose
``` yaml
...
@@ -89,9 +82,38 @@ sudo docker exec -u git -it -w /tmp gitea bash -c '/app/gitea/gitea dump -d post
- GITEA_RUNNER_REGISTRATION_TOKEN=<registration token>
```
https://gitea.com/gitea/act_runner/src/branch/main/examples/docker-compose
### custom act runner - gitea/act_runner:0.2.13-network-stack
**🚀 Purpose**
This container equips the Gitea Actions runner with a networkaware toolchain, making it suitable for continuous deployments in environments where DockerinDocker or elevated privileges are not available.
- Kubernetesfriendly: ships with kubectl and supporting utilities so it can interact directly with clusters.
- No privileged mode required: avoids the need for Docker socket mounts or root escalation.
- CI/CD ready: includes SSH, Ansible, Node.js, rsync, rclone, and envsubst for orchestration, templating, and asset transfer.
**📦 Installed packages**
- 🛡️ openssh-client, 🌐 curl, ⚙️ ansible, 🟦 nodejs, 🔄 rclone, 📤 rsync, and 🔧 envsubst via Alpines apk package manager
- 🔑 SSH and curl → remote access and HTTP requests
- ⚙️ Ansible → configuration management and automation
- 🟦 Node.js → JavaScript runtime for workflows
- 🔄 Rclone and rsync → file synchronization and transfer
- 🔧 envsubst → environment variable substitution in templates
- ☸️ kubectl → fetches the latest stable Kubernetes CLI directly from Google Cloud Storage
**Docker pull**
``` bash
docker pull git.limbosolutions.com/kb/gitea/act_runner:0.2.13-network-stack
```
[Dockerfile source file.](./runners/act-runner-network-stack/Dockerfile)
## Other References
- [limbosolutions gitea hosting](https://git.limbosolutions.com) and [git repo](https://git.limbosolutions.com/limbosolutions.com/git.limbosolutions.com)
- [git.limbosolution.com](https://git.limbosolutions.com)
- [git.limbosolution.com - repo](https://git.limbosolutions.com/limbosolutions.com/git.limbosolutions.com)