feat: add CI config
This commit is contained in:
parent
50188fd7ce
commit
2e9020bc47
1 changed files with 27 additions and 0 deletions
27
.drone.yml
Normal file
27
.drone.yml
Normal file
|
@ -0,0 +1,27 @@
|
||||||
|
---
|
||||||
|
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}"
|
||||||
|
- buildah tag "docker.io/eqalpha/keydb:x86_64_$${IMAGE_TAG}" "$${IMAGE_REGISTRY}/prskr/infrastructure/keydb:x86_64_$${IMAGE_TAG}"
|
||||||
|
- buildah pull "docker.io/eqalpha/keydb:arm64_$${IMAGE_TAG}"
|
||||||
|
- buildah tag "docker.io/eqalpha/keydb:arm64_$${IMAGE_TAG}" "$${IMAGE_REGISTRY}/prskr/infrastructure/keydb:arm64_$${IMAGE_TAG}"
|
||||||
|
- buildah manifest create "$${IMAGE_REPO}/prskr/infrastructure/keydb:$${IMAGE_TAG}"
|
||||||
|
- buildah manifest add "$${IMAGE_REPO}/prskr/infrastructure/keydb:$${IMAGE_TAG}" "$${IMAGE_REGISTRY}/prskr/infrastructure/keydb:x86_64_$${IMAGE_TAG}"
|
||||||
|
- buildah manifest add "$${IMAGE_REPO}/prskr/infrastructure/keydb:$${IMAGE_TAG}" "$${IMAGE_REGISTRY}/prskr/infrastructure/keydb:aarch64_$${IMAGE_TAG}"
|
||||||
|
- buildah manifest push --all "$${IMAGE_REPO}/prskr/infrastructure/keydb:$${IMAGE_TAG}" "docker://$${IMAGE_REPO}/prskr/infrastructure/keydb:$${IMAGE_TAG}"
|
||||||
|
environment:
|
||||||
|
GITEA_USER: prskr
|
||||||
|
GITEA_TOKEN:
|
||||||
|
from_secret: gitea_token
|
||||||
|
IMAGE_REGISTRY: code.icb4dc0.de
|
||||||
|
IMAGE_REPO: prskr/infrastructure/keydb
|
||||||
|
IMAGE_TAG: v6.3.2
|
Loading…
Reference in a new issue