infrastructure/.drone.yml

27 lines
1.3 KiB
YAML
Raw Normal View History

2023-07-14 06:37:17 +00:00
---
kind: pipeline
type: docker
name: default
steps:
- name: keydb
image: quay.io/buildah/stable
network_mode: host
privileged: true
commands:
- buildah login "$${IMAGE_REGISTRY}" --username "$${GITEA_USER}" --password "$${GITEA_TOKEN}"
- buildah pull "docker.io/eqalpha/keydb:x86_64_$${IMAGE_TAG}"
2023-07-15 09:08:57 +00:00
- buildah tag "docker.io/eqalpha/keydb:x86_64_$${IMAGE_TAG}" "$${IMAGE_REGISTRY}/$${IMAGE_REPO}:x86_64_$${IMAGE_TAG}"
2023-07-14 06:37:17 +00:00
- buildah pull "docker.io/eqalpha/keydb:arm64_$${IMAGE_TAG}"
2023-07-15 09:08:57 +00:00
- buildah tag "docker.io/eqalpha/keydb:arm64_$${IMAGE_TAG}" "$${IMAGE_REGISTRY}/$${IMAGE_REPO}:arm64_$${IMAGE_TAG}"
- buildah manifest create "$${IMAGE_REGISTRY}/$${IMAGE_REPO}:$${IMAGE_TAG}"
- buildah manifest add "$${IMAGE_REGISTRY}/$${IMAGE_REPO}:$${IMAGE_TAG}" "$${IMAGE_REGISTRY}/$${IMAGE_REPO}:x86_64_$${IMAGE_TAG}"
- buildah manifest add "$${IMAGE_REGISTRY}/$${IMAGE_REPO}:$${IMAGE_TAG}" "$${IMAGE_REGISTRY}/$${IMAGE_REPO}:arm64_$${IMAGE_TAG}"
- buildah manifest push --all "$${IMAGE_REGISTRY}/$${IMAGE_REPO}:$${IMAGE_TAG}" "docker://$${IMAGE_REGISTRY}/$${IMAGE_REPO}:$${IMAGE_TAG}"
2023-07-14 06:37:17 +00:00
environment:
GITEA_USER: prskr
GITEA_TOKEN:
from_secret: gitea_token
IMAGE_REGISTRY: code.icb4dc0.de
IMAGE_REPO: prskr/infrastructure/keydb
2023-10-20 12:30:34 +00:00
IMAGE_TAG: v6.3.3