From dc56891f9ee22af15b7c7ff59c90e5c2d982d172 Mon Sep 17 00:00:00 2001 From: Peter Kurfer Date: Fri, 17 Nov 2023 09:03:46 +0100 Subject: [PATCH] feat: migrate renovate image --- .../{act_runner.yaml => image_builds.yaml} | 13 +++++++++---- {act_runner => act_runtime}/Dockerfile | 0 renovate/Dockerfile | 11 +++++++++++ 3 files changed, 20 insertions(+), 4 deletions(-) rename .gitea/workflows/{act_runner.yaml => image_builds.yaml} (68%) rename {act_runner => act_runtime}/Dockerfile (100%) create mode 100644 renovate/Dockerfile diff --git a/.gitea/workflows/act_runner.yaml b/.gitea/workflows/image_builds.yaml similarity index 68% rename from .gitea/workflows/act_runner.yaml rename to .gitea/workflows/image_builds.yaml index b844897..0762eb0 100644 --- a/.gitea/workflows/act_runner.yaml +++ b/.gitea/workflows/image_builds.yaml @@ -1,5 +1,5 @@ --- -name: act runner +name: Image builds on: schedule: - cron: '21 2 * * *' @@ -8,7 +8,12 @@ on: - main jobs: - build-act-runner: + build_images: + strategy: + matrix: + image: + - act_runtime + - renovate runs-on: ubuntu-latest steps: - name: Checkout @@ -26,6 +31,6 @@ jobs: - name: Build and push uses: docker/build-push-action@v5 with: - context: "./act_runner" + context: "./${{ matrix.image }}" push: true - tags: code.icb4dc0.de/infrastructure/images/act_runtime:latest \ No newline at end of file + tags: code.icb4dc0.de/infrastructure/images/${{ matrix.image }}:latest \ No newline at end of file diff --git a/act_runner/Dockerfile b/act_runtime/Dockerfile similarity index 100% rename from act_runner/Dockerfile rename to act_runtime/Dockerfile diff --git a/renovate/Dockerfile b/renovate/Dockerfile new file mode 100644 index 0000000..3a1b100 --- /dev/null +++ b/renovate/Dockerfile @@ -0,0 +1,11 @@ +FROM docker.io/golang:1.21-alpine AS go-tools-builder + +RUN go install github.com/marwan-at-work/mod/cmd/mod@latest + +FROM docker.io/node:lts-alpine + +COPY --from=go-tools-builder /go/bin/ /usr/local/bin/ + +RUN npm install -g renovate && \ + echo "http://dl-cdn.alpinelinux.org/alpine/edge/community" >> /etc/apk/repositories && \ + apk add -U --no-cache git go re2 \ No newline at end of file