From 9776b83ff48596226f8ec9b29f096745a449e789 Mon Sep 17 00:00:00 2001 From: Matthew Rich Date: Wed, 27 Mar 2024 15:40:57 -0700 Subject: [PATCH] add container example --- examples/container.yaml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 examples/container.yaml diff --git a/examples/container.yaml b/examples/container.yaml new file mode 100644 index 0000000..3caa9fe --- /dev/null +++ b/examples/container.yaml @@ -0,0 +1,22 @@ +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