batman
Some checks failed
Build and Push to Forgejo Registry / checkout (push) Failing after 6s

This commit is contained in:
pika 2025-04-12 12:46:33 +02:00
commit a31df71d2b
3 changed files with 101 additions and 0 deletions

10
Dockerfile Normal file
View file

@ -0,0 +1,10 @@
FROM ghcr.io/catthehacker/ubuntu:act-22.04
RUN export RUNNER_VERSION=$(curl -X 'GET' https://data.forgejo.org/api/v1/repos/forgejo/runner/releases/latest | jq .name -r | cut -c 2-) && wget -O forgejo-runner https://code.forgejo.org/forgejo/runner/releases/download/v${RUNNER_VERSION}/forgejo-runner-${RUNNER_VERSION}-linux-amd64 && chmod +x forgejo-runner && mv forgejo-runner /usr/bin/
RUN useradd --create-home runner && usermod -aG docker runner
USER runner
WORKDIR /home/runner
CMD ["forgejo-runner", "daemon"]