2023-02-18 10:34:27 +00:00
|
|
|
---
|
|
|
|
kind: pipeline
|
|
|
|
type: docker
|
2023-07-15 10:23:35 +00:00
|
|
|
name: amd64
|
2023-02-18 10:34:27 +00:00
|
|
|
|
2023-07-15 10:23:35 +00:00
|
|
|
platform:
|
|
|
|
arch: amd64
|
2023-02-18 10:34:27 +00:00
|
|
|
|
2023-07-15 10:23:35 +00:00
|
|
|
steps:
|
2023-02-18 10:34:27 +00:00
|
|
|
- name: ko
|
|
|
|
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/ko
|
|
|
|
IMAGE_TAG: latest
|
|
|
|
BUILD_CONTEXT: ko/
|
|
|
|
|
2023-04-18 06:45:48 +00:00
|
|
|
- name: kustomize
|
|
|
|
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/kustomize
|
|
|
|
IMAGE_TAG: latest
|
|
|
|
BUILD_CONTEXT: kustomize/
|
|
|
|
|
2023-02-18 10:34:27 +00:00
|
|
|
- name: caddy
|
|
|
|
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/caddy
|
2023-07-15 10:23:35 +00:00
|
|
|
IMAGE_TAG: x86_64
|
2023-02-28 19:25:55 +00:00
|
|
|
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
|
2023-07-18 18:40:56 +00:00
|
|
|
IMAGE_TAG: x86_64
|
2023-07-15 10:23:35 +00:00
|
|
|
BUILD_CONTEXT: renovate/
|
|
|
|
|
|
|
|
---
|
|
|
|
kind: pipeline
|
|
|
|
type: docker
|
|
|
|
name: arm64
|
|
|
|
|
|
|
|
platform:
|
|
|
|
arch: arm64
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: caddy
|
|
|
|
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/caddy
|
|
|
|
IMAGE_TAG: arm64
|
|
|
|
BUILD_CONTEXT: caddy/
|
|
|
|
|
2023-07-18 18:40:56 +00:00
|
|
|
- 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/
|
|
|
|
|
2023-07-15 10:23:35 +00:00
|
|
|
---
|
|
|
|
kind: pipeline
|
|
|
|
type: docker
|
|
|
|
name: manifests
|
|
|
|
|
|
|
|
depends_on:
|
|
|
|
- amd64
|
|
|
|
- arm64
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: caddy
|
|
|
|
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/caddy
|
2023-07-18 18:40:56 +00:00
|
|
|
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
|
2023-07-15 10:23:35 +00:00
|
|
|
IMAGE_TAG: latest
|