cluster

Infrastructure files for Nordgedanken and Midnightthoughts.
git clone git://archive.git.mtrnord.blog/MTRNord/cluster.git
Log | Files | Refs | README

commit 7c87607c7d0bcdf8e895a6262675838159e1c296
parent 79c82b7298a1bd6cda94eeda083c002dc77abbc0
Author: MTRNord <MTRNord@users.noreply.github.com>
Date:   Thu,  9 Apr 2026 14:26:02 +0200

fix tasks

Signed-off-by: MTRNord <MTRNord@users.noreply.github.com>

Diffstat:
Mapps/talos_cluster/image-builder/build-blog-cronjob.yaml | 3++-
Mapps/talos_cluster/image-builder/build-bookwyrm-cronjob.yaml | 3++-
Mapps/talos_cluster/image-builder/build-continuwuity-cronjob.yaml | 3++-
Mapps/talos_cluster/image-builder/build-matrix-backup-cronjob.yaml | 8++++++--
4 files changed, 12 insertions(+), 5 deletions(-)

diff --git a/apps/talos_cluster/image-builder/build-blog-cronjob.yaml b/apps/talos_cluster/image-builder/build-blog-cronjob.yaml @@ -62,12 +62,13 @@ spec: /workspace/apps/talos_cluster/blog/docker podman manifest push --all "${IMAGE}:${TAG_TS}" "docker://${IMAGE}:${TAG_TS}" + podman pull "${IMAGE}:${TAG_TS}" podman tag "${IMAGE}:${TAG_TS}" "${IMAGE}:latest" podman tag "${IMAGE}:${TAG_TS}" "${IMAGE}:${TAG_SHA}" podman push "${IMAGE}:latest" podman push "${IMAGE}:${TAG_SHA}" - DIGEST="$(podman inspect --format='{{index .RepoDigests 0}}' "${IMAGE}:${TAG_TS}" | cut -d@ -f2)" + DIGEST="$(podman image inspect --format='{{index .RepoDigests 0}}' "${IMAGE}:${TAG_TS}" | cut -d@ -f2)" [ -z "$DIGEST" ] && echo "Failed to get digest" && exit 1 echo "==> Digest: ${DIGEST}" diff --git a/apps/talos_cluster/image-builder/build-bookwyrm-cronjob.yaml b/apps/talos_cluster/image-builder/build-bookwyrm-cronjob.yaml @@ -130,10 +130,11 @@ spec: /workspace/bookwyrm podman manifest push --all "${IMAGE}:${VERSION}" "docker://${IMAGE}:${VERSION}" + podman pull "${IMAGE}:${VERSION}" podman tag "${IMAGE}:${VERSION}" "${IMAGE}:latest" podman push "${IMAGE}:latest" - DIGEST="$(podman inspect --format='{{index .RepoDigests 0}}' "${IMAGE}:${VERSION}" | cut -d@ -f2)" + DIGEST="$(podman image inspect --format='{{index .RepoDigests 0}}' "${IMAGE}:${VERSION}" | cut -d@ -f2)" [ -z "$DIGEST" ] && echo "Failed to get digest" && exit 1 echo "==> Digest: ${DIGEST}" diff --git a/apps/talos_cluster/image-builder/build-continuwuity-cronjob.yaml b/apps/talos_cluster/image-builder/build-continuwuity-cronjob.yaml @@ -74,12 +74,13 @@ spec: /workspace/apps/talos_cluster/continuwuity podman manifest push --all "${IMAGE}:${TAG_TS}" "docker://${IMAGE}:${TAG_TS}" + podman pull "${IMAGE}:${TAG_TS}" podman tag "${IMAGE}:${TAG_TS}" "${IMAGE}:main" podman tag "${IMAGE}:${TAG_TS}" "${IMAGE}:${TAG_SHA}" podman push "${IMAGE}:main" podman push "${IMAGE}:${TAG_SHA}" - DIGEST="$(podman inspect --format='{{index .RepoDigests 0}}' "${IMAGE}:${TAG_TS}" | cut -d@ -f2)" + DIGEST="$(podman image inspect --format='{{index .RepoDigests 0}}' "${IMAGE}:${TAG_TS}" | cut -d@ -f2)" [ -z "$DIGEST" ] && echo "Failed to get digest" && exit 1 echo "==> Digest: ${DIGEST}" diff --git a/apps/talos_cluster/image-builder/build-matrix-backup-cronjob.yaml b/apps/talos_cluster/image-builder/build-matrix-backup-cronjob.yaml @@ -38,7 +38,10 @@ spec: - -c - | set -eu - apk add --no-cache podman cosign git iptables >/dev/null + apk add --no-cache podman git iptables >/dev/null + + # Install cosign v3.0.6 + wget -q https://github.com/sigstore/cosign/releases/download/v3.0.6/cosign-linux-arm64 -O /tmp/cosign && chmod +x /tmp/cosign mkdir -p /etc/containers cat > /etc/containers/storage.conf << 'STORAGE_EOF' @@ -62,12 +65,13 @@ spec: /workspace/apps/talos_cluster/matrix-backup/backup-tool podman manifest push --all "${IMAGE}:${TAG_TS}" "docker://${IMAGE}:${TAG_TS}" + podman pull "${IMAGE}:${TAG_TS}" podman tag "${IMAGE}:${TAG_TS}" "${IMAGE}:main" podman tag "${IMAGE}:${TAG_TS}" "${IMAGE}:${TAG_SHA}" podman push "${IMAGE}:main" podman push "${IMAGE}:${TAG_SHA}" - DIGEST="$(podman inspect --format='{{index .RepoDigests 0}}' "${IMAGE}:${TAG_TS}" | cut -d@ -f2)" + DIGEST="$(podman image inspect --format='{{index .RepoDigests 0}}' "${IMAGE}:${TAG_TS}" | cut -d@ -f2)" [ -z "$DIGEST" ] && echo "Failed to get digest" && exit 1 echo "==> Digest: ${DIGEST}"