act-runners/kubectl: image revision
act-fatboy.yml / build-container-image (push) Successful in 1m44s
act-runner-fatboy-deploy.yml / build-container-image (push) Successful in 18s
act-runner-kubectl.yml / build-container-image (push) Successful in 25s

This commit is contained in:
Márcio Fernandes
2026-09-03 23:45:01 +01:00
parent d399d6118a
commit 2344564ed4
6 changed files with 167 additions and 13 deletions
+85 -2
View File
@@ -4,9 +4,10 @@
- [Backup And Restore](#backup-and-restore)
- [Gitea dump from docker host](#gitea-dump-from-docker-host)
- [nginx](#nginx)
- [act runner](#act-runner)
- [Gitea Runner Environment Variables](#gitea-runner-environment-variables)
- [act runner (Official)](#act-runner-official)
- [Docker Compose](#docker-compose)
- [custom act runner - kubectl-mini](#custom-act-runner---kubectl-mini)
- [custom act runner - network-stack](#custom-act-runner---network-stack)
- [workflows - actions](#workflows---actions)
- [Other References](#other-references)
@@ -54,7 +55,50 @@ sudo docker exec -u git -it -w /tmp gitea bash -c '/app/gitea/gitea dump -d post
}
```
## act runner
## Gitea Runner Environment Variables
**Registration Variables:**
Used when running `gitea-runner register`.
- GITEA_INSTANCE_URL
- GITEA_RUNNER_REGISTRATION_TOKEN
- GITEA_RUNNER_NAME
- GITEA_RUNNER_LABELS
- GITEA_RUNNER_CONFIG_FILE
**Daemon / Runtime Variables:**
Used when running `gitea-runner daemon`.
- GITEA_RUNNER_CONFIG_FILE
**3. Cache Server Variables:**
Used when running the internal cache server.
- GITEA_RUNNER_CACHE_SERVER_PORT
- GITEA_RUNNER_CACHE_SERVER_ADDRESS
- GITEA_RUNNER_CACHE_SERVER_DIR
**Local Execution (`exec`) Variables:**
Used when running workflows locally with `gitea-runner exec`.
- GITEA_RUNNER_EXEC_WORKDIR
- GITEA_RUNNER_EXEC_ENV_FILE
- GITEA_RUNNER_EXEC_SECRET_FILE
**Advanced / Debugging Variables:**
Low-level runtime toggles.
- GITEA_RUNNER_DEBUG
- GITEA_RUNNER_TRACE
- GITEA_RUNNER_LOG_FORMAT # text or json
- GITEA_RUNNER_LOG_FILE
- GITEA_RUNNER_DISABLE_NETWORK
- GITEA_RUNNER_DISABLE_DOCKER
- GITEA_RUNNER_DISABLE_SHELL
### act runner (Official)
@@ -83,6 +127,45 @@ sudo docker exec -u git -it -w /tmp gitea bash -c '/app/gitea/gitea dump -d post
- GITEA_RUNNER_REGISTRATION_TOKEN=<registration token>
```
### custom act runner - kubectl-mini
``` bash
docker pull oci.limbosolutions.com/public/act-runners/kubectl:3.0.2
```
**Docker Compose example:**
``` yaml
services:
act-runner:
image: oci.limbosolutions.com/public/act-runners/kubectl:3.0.2
container_name: act-runner-kubectl
restart: unless-stopped
configs:
- source: runner_config
target: "etc/act_runner/config.yaml"
environment:
GITEA_INSTANCE_URL: "${GITEA_INSTANCE_URL}"
GITEA_RUNNER_REGISTRATION_TOKEN: "${GITEA_RUNNER_REGISTRATION_TOKEN}"
volumes:
act-runner-config:
configs:
runner_config:
content: |
log:
level: info
runner:
capacity: 1
labels:
- linux
- kubectl
cache:
enabled: false
```
### custom act runner - network-stack
**🚀 Purpose**