jx/examples/container.yaml
Matthew Rich 9776b83ff4
Some checks failed
Declarative Tests / test (push) Waiting to run
Lint / golangci-lint (push) Has been cancelled
add container example
2024-03-27 15:40:57 -07:00

23 lines
611 B
YAML

resources:
- type: container
attributes:
image: gitea/act_runner:latest
name: builder
environment:
CONFIG_FILE: /act_runner/etc/config.xml
GITEA_INSTANCE_URL: https://gitea.example
GITEA_RUNNER_REGISTRATION_TOKEN: abcdef1234567890
GITEA_RUNNER_NAME: builder
hostconfig:
mounts:
- type: "bind"
source: "act_runner/etc"
target: "/act_runner/etc"
- type: "bind"
source: "act_runner/data"
target: "/data"
- type: "bind"
source: "/var/run/docker.sock"
target: "/var/run/docker.sock"
state: present