images/.forgejo/workflows/keydb.yaml

37 lines
1.6 KiB
YAML
Raw Normal View History

2023-11-14 20:18:08 +00:00
---
name: KeyDB
on:
schedule:
2024-03-02 11:20:03 +00:00
- cron: "21 2 * * *"
2023-11-14 20:18:08 +00:00
push:
branches:
- main
jobs:
2023-11-16 17:49:44 +00:00
build-key-db-image:
2023-11-14 20:18:08 +00:00
runs-on: ubuntu-latest
steps:
- name: Checkout
2024-03-02 11:20:03 +00:00
uses: actions/checkout@v4
2023-11-14 20:18:08 +00:00
with:
fetch-depth: 0
- name: Compose manifest
2024-03-02 11:20:03 +00:00
uses: docker://quay.io/containers/buildah:v1.34.0
2023-11-14 20:18:08 +00:00
with:
2023-11-16 17:49:44 +00:00
entrypoint: /bin/bash
2023-11-14 20:18:08 +00:00
args: |
2023-11-16 17:49:44 +00:00
-c -- '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}"'
2023-11-14 20:18:08 +00:00
env:
GITEA_USER: prskr
IMAGE_REGISTRY: code.icb4dc0.de
IMAGE_REPO: infrastructure/images/keydb
2024-03-02 11:20:03 +00:00
IMAGE_TAG: v6.3.4