From 0bd1b2b90c8257dcfe12d7a4ffcb5ba5895ea21c Mon Sep 17 00:00:00 2001 From: Peter Kurfer Date: Wed, 1 Mar 2023 07:19:51 +0100 Subject: [PATCH] fix(renovate): add missing mod tool --- .concourse/pipeline.yml | 64 ---------------------------- .concourse/tasks/image-build.yml | 28 ------------ common/hetzner-bullseye-sources.list | 4 -- renovate/Dockerfile | 6 +++ 4 files changed, 6 insertions(+), 96 deletions(-) delete mode 100644 .concourse/pipeline.yml delete mode 100644 .concourse/tasks/image-build.yml delete mode 100644 common/hetzner-bullseye-sources.list diff --git a/.concourse/pipeline.yml b/.concourse/pipeline.yml deleted file mode 100644 index 830bff3..0000000 --- a/.concourse/pipeline.yml +++ /dev/null @@ -1,64 +0,0 @@ ---- -resources: -- name: ci-images.git - type: git - icon: github - source: - uri: https://code.icb4dc0.de/prskr/ci-images.git - -- name: caddy-release - type: github-release - icon: github - source: - owner: caddyserver - repository: caddy - access_token: ((github-credentials.token)) - -- name: ko-release - type: github-release - icon: github - source: - owner: ko-build - repository: ko - access_token: ((github-credentials.token)) - -jobs: - - name: caddy - plan: - - get: ci-images.git - trigger: true - - get: caddy-release - trigger: true - - task: caddy - file: ci-images.git/.concourse/tasks/image-build.yml - input_mapping: - repo: ci-images.git - vars: - build_context: caddy/ - image_repo: code.icb4dc0.de/prskr/ci-images/caddy - - - name: ko - plan: - - get: ci-images.git - trigger: true - - get: ko-release - trigger: true - - task: ko - file: ci-images.git/.concourse/tasks/image-build.yml - input_mapping: - repo: ci-images.git - vars: - build_context: ko/ - image_repo: code.icb4dc0.de/prskr/ci-images/ko - - - name: dind-go - plan: - - get: ci-images.git - trigger: true - - task: dind-go - file: ci-images.git/.concourse/tasks/image-build.yml - input_mapping: - repo: ci-images.git - vars: - build_context: dind-go/ - image_repo: code.icb4dc0.de/prskr/ci-images/dind-go diff --git a/.concourse/tasks/image-build.yml b/.concourse/tasks/image-build.yml deleted file mode 100644 index 019263d..0000000 --- a/.concourse/tasks/image-build.yml +++ /dev/null @@ -1,28 +0,0 @@ ---- -platform: linux - -image_resource: - type: registry-image - source: - repository: gcr.io/kaniko-project/executor - tag: debug - -inputs: - - name: repo - path: . - -params: - GITEA_USER: ((gitea-credentials.user)) - GITEA_TOKEN: ((gitea-credentials.token)) - BUILD_CONTEXT: ((build_context)) - IMAGE_REPO: ((image_repo)) - IMAGE_TAG: latest - -run: - path: sh - args: - - -cex - - | - echo "{\"auths\": {\"https://code.icb4dc0.de\": {\"auth\" : \"$(printf '%s:%s' $GITEA_USER $GITEA_TOKEN | base64)\" }}}" > /kaniko/.docker/config.json - - /kaniko/executor --destination "${IMAGE_REPO}:${IMAGE_TAG}" --context "${BUILD_CONTEXT}" diff --git a/common/hetzner-bullseye-sources.list b/common/hetzner-bullseye-sources.list deleted file mode 100644 index c47bafa..0000000 --- a/common/hetzner-bullseye-sources.list +++ /dev/null @@ -1,4 +0,0 @@ -deb https://mirror.hetzner.com/debian/packages bullseye main contrib non-free -deb https://mirror.hetzner.com/debian/packages bullseye-updates main contrib non-free -deb https://mirror.hetzner.com/debian/security bullseye-security main contrib non-free -deb https://mirror.hetzner.com/debian/packages bullseye-backports main contrib non-free \ No newline at end of file diff --git a/renovate/Dockerfile b/renovate/Dockerfile index 4388a7f..c8438fa 100644 --- a/renovate/Dockerfile +++ b/renovate/Dockerfile @@ -1,5 +1,11 @@ +FROM docker.io/golang:1-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 \ No newline at end of file