feat: add KeyDB image flow
Some checks failed
KeyDB / build (push) Failing after 0s

This commit is contained in:
Peter 2023-11-14 21:18:08 +01:00
commit 0eaf3fc60b
No known key found for this signature in database
2 changed files with 38 additions and 0 deletions

View file

@ -0,0 +1,36 @@
---
name: KeyDB
on:
schedule:
- cron: '21 2 * * *'
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Compose manifest
using: docker
image: docker://quay.io/containers/buildah:v1.32.2
with:
args: |
buildah login "${IMAGE_REGISTRY}" --username "${GITEA_USER}" --password ${{ secrets.CONTAINER_REGISTRY_TOKEN }}
buildah pull "docker.io/eqalpha/keydb:x86_64_${IMAGE_TAG}"
buildah tag "docker.io/eqalpha/keydb:x86_64_${IMAGE_TAG}" "${IMAGE_REGISTRY}/${IMAGE_REPO}:x86_64_${IMAGE_TAG}"
buildah pull "docker.io/eqalpha/keydb:arm64_${IMAGE_TAG}"
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}"
env:
GITEA_USER: prskr
IMAGE_REGISTRY: code.icb4dc0.de
IMAGE_REPO: infrastructure/images/keydb
IMAGE_TAG: v6.3.3

2
.gitignore vendored Normal file
View file

@ -0,0 +1,2 @@
.vscode/
.idea/