feat(renovate): multi-arch image
Some checks reported errors
continuous-integration/drone/push Build was killed
Some checks reported errors
continuous-integration/drone/push Build was killed
This commit is contained in:
parent
65b70811fa
commit
4bacbaa9b2
2 changed files with 51 additions and 1 deletions
35
.drone.yml
35
.drone.yml
|
@ -64,7 +64,7 @@ steps:
|
||||||
GITEA_TOKEN:
|
GITEA_TOKEN:
|
||||||
from_secret: gitea_token
|
from_secret: gitea_token
|
||||||
IMAGE_REPO: code.icb4dc0.de/prskr/ci-images/renovate
|
IMAGE_REPO: code.icb4dc0.de/prskr/ci-images/renovate
|
||||||
IMAGE_TAG: latest
|
IMAGE_TAG: x86_64
|
||||||
BUILD_CONTEXT: renovate/
|
BUILD_CONTEXT: renovate/
|
||||||
|
|
||||||
---
|
---
|
||||||
|
@ -91,6 +91,21 @@ steps:
|
||||||
IMAGE_TAG: arm64
|
IMAGE_TAG: arm64
|
||||||
BUILD_CONTEXT: caddy/
|
BUILD_CONTEXT: caddy/
|
||||||
|
|
||||||
|
- name: renovate
|
||||||
|
image: gcr.io/kaniko-project/executor:debug
|
||||||
|
network_mode: host
|
||||||
|
commands:
|
||||||
|
- >
|
||||||
|
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}"
|
||||||
|
environment:
|
||||||
|
GITEA_USER: prskr
|
||||||
|
GITEA_TOKEN:
|
||||||
|
from_secret: gitea_token
|
||||||
|
IMAGE_REPO: code.icb4dc0.de/prskr/ci-images/renovate
|
||||||
|
IMAGE_TAG: arm64
|
||||||
|
BUILD_CONTEXT: renovate/
|
||||||
|
|
||||||
---
|
---
|
||||||
kind: pipeline
|
kind: pipeline
|
||||||
type: docker
|
type: docker
|
||||||
|
@ -118,3 +133,21 @@ steps:
|
||||||
IMAGE_REGISTRY: code.icb4dc0.de
|
IMAGE_REGISTRY: code.icb4dc0.de
|
||||||
IMAGE_REPO: prskr/ci-images/caddy
|
IMAGE_REPO: prskr/ci-images/caddy
|
||||||
IMAGE_TAG: latest
|
IMAGE_TAG: latest
|
||||||
|
|
||||||
|
- name: renovate
|
||||||
|
image: quay.io/buildah/stable
|
||||||
|
network_mode: host
|
||||||
|
privileged: true
|
||||||
|
commands:
|
||||||
|
- buildah login "$${IMAGE_REGISTRY}" --username "$${GITEA_USER}" --password "$${GITEA_TOKEN}"
|
||||||
|
- buildah manifest create "$${IMAGE_REGISTRY}/$${IMAGE_REPO}:$${IMAGE_TAG}"
|
||||||
|
- buildah manifest add "$${IMAGE_REGISTRY}/$${IMAGE_REPO}:$${IMAGE_TAG}" "docker://$${IMAGE_REGISTRY}/$${IMAGE_REPO}:x86_64"
|
||||||
|
- buildah manifest add "$${IMAGE_REGISTRY}/$${IMAGE_REPO}:$${IMAGE_TAG}" "docker://$${IMAGE_REGISTRY}/$${IMAGE_REPO}:arm64"
|
||||||
|
- buildah manifest push --all "$${IMAGE_REGISTRY}/$${IMAGE_REPO}:$${IMAGE_TAG}" "docker://$${IMAGE_REGISTRY}/$${IMAGE_REPO}:$${IMAGE_TAG}"
|
||||||
|
environment:
|
||||||
|
GITEA_USER: prskr
|
||||||
|
GITEA_TOKEN:
|
||||||
|
from_secret: gitea_token
|
||||||
|
IMAGE_REGISTRY: code.icb4dc0.de
|
||||||
|
IMAGE_REPO: prskr/ci-images/renovate
|
||||||
|
IMAGE_TAG: latest
|
17
templates/renovate.yml
Normal file
17
templates/renovate.yml
Normal file
|
@ -0,0 +1,17 @@
|
||||||
|
---
|
||||||
|
kind: pipeline
|
||||||
|
type: docker
|
||||||
|
name: renovate
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Renovate
|
||||||
|
image: code.icb4dc0.de/prskr/ci-images/renovate:latest
|
||||||
|
commands:
|
||||||
|
- renovate "{{ .repo.slug }}"
|
||||||
|
environment:
|
||||||
|
RENOVATE_TOKEN: "{{ .input.gitea_token }}"
|
||||||
|
GITHUB_COM_TOKEN: "{{ .input.github_token }}"
|
||||||
|
RENOVATE_PLATFORM: gitea
|
||||||
|
RENOVATE_AUTODISCOVER: "false"
|
||||||
|
RENOVATE_ENDPOINT: https://code.icb4dc0.de/api/v1
|
||||||
|
LOG_LEVEL: info
|
Loading…
Reference in a new issue