Compare commits

..

No commits in common. "main" and "v1.1.0" have entirely different histories.
main ... v1.1.0

3 changed files with 7 additions and 23 deletions

View file

@ -3,19 +3,22 @@ ARG CHECKOUT=main
# Go container
FROM golang:1.20.2-alpine3.17 AS GO_BUILD
ARG CHECKOUT
RUN apk fix && \
apk --no-cache --update add git make
RUN mkdir /build
RUN git clone https://code.forgejo.org/forgejo/runner.git /build/runner \
&& cd /build/runner \
&& git checkout $CHECKOUT
WORKDIR /build/runner
RUN make build
# --
# Final Container
FROM alpine:3.17
RUN mkdir /app
COPY --from=GO_BUILD /build/runner/forgejo-runner /app/forgejo-runner
WORKDIR /app
CMD ["./forgejo-runner", "daemon"]
COPY --from=GO_BUILD /build/runner/forgejo-runner ./
CMD ["./forgejo-runner"]

View file

@ -1,13 +1,2 @@
# runner-docker
Use this to register the runner
```bash
docker run -it -v $(pwd)/runner.conf:/app/.runner git.itzyanick.de/itzyanick/runner-docker:v1.1.0-2 ./forgejo-runner register
```
Then run the runner
```bash
docker compose up -d
```

View file

@ -1,8 +0,0 @@
version: "3.7"
services:
runner:
image: git.itzyanick.de/itzyanick/runner-docker:v1.1.0-2
restart: unless-stopped
volumes:
- "./runner.conf:/app/.runner"
- "/var/run/docker.sock:/var/run/docker.sock"