This commit is contained in:
@@ -17,11 +17,12 @@ jobs:
|
||||
username: woggioni
|
||||
password: ${{ secrets.PUBLISHER_TOKEN }}
|
||||
-
|
||||
name: Build and push Gitea runner images
|
||||
name: Build and push runner image
|
||||
uses: docker/build-push-action@v6
|
||||
with:
|
||||
builder: multiplatform-builder
|
||||
context: "{{defaultContext}}:gitea-runner"
|
||||
target: runner
|
||||
platforms: |
|
||||
linux/amd64
|
||||
linux/arm64
|
||||
@@ -30,3 +31,18 @@ jobs:
|
||||
tags: |
|
||||
"gitea.woggioni.net/woggioni/gitea-runner:latest"
|
||||
|
||||
-
|
||||
name: Build and push java image
|
||||
uses: docker/build-push-action@v6
|
||||
with:
|
||||
builder: multiplatform-builder
|
||||
context: "{{defaultContext}}:gitea-runner"
|
||||
target: java
|
||||
platforms: |
|
||||
linux/amd64
|
||||
linux/arm64
|
||||
push: true
|
||||
pull: true
|
||||
tags: |
|
||||
"gitea.woggioni.net/woggioni/gitea-runner/java:latest"
|
||||
|
||||
|
||||
+10
-1
@@ -1,7 +1,16 @@
|
||||
FROM alpine:3.24
|
||||
FROM alpine:3.24 AS runner
|
||||
RUN echo "@testing https://dl-cdn.alpinelinux.org/alpine/edge/testing" >> /etc/apk/repositories
|
||||
RUN --mount=type=cache,target=/var/cache/apk apk update
|
||||
RUN --mount=type=cache,target=/var/cache/apk apk add gitea-runner@testing nodejs docker
|
||||
USER gitea-runner
|
||||
WORKDIR /var/lib/gitea-runner
|
||||
CMD ["/usr/bin/gitea-runner", "daemon", "--config", "/etc/gitea-runner/config.yaml"]
|
||||
|
||||
FROM debian:stable-slim AS java
|
||||
RUN --mount=type=cache,target=/var/cache/apt,sharing=locked \
|
||||
--mount=type=cache,target=/var/lib/apt,sharing=locked \
|
||||
apt update &&\
|
||||
apt install -y nodejs
|
||||
RUN useradd gitea-runner -d /var/lib/gitea-runner -u 100
|
||||
USER gitea-runner
|
||||
WORKDIR /var/lib/gitea-runner
|
||||
|
||||
Reference in New Issue
Block a user