.gitea/workflows/redhat_build.yml aktualisiert

This commit is contained in:
2026-08-09 18:10:57 +00:00
parent 075a89d7f9
commit b382f6646c
+5 -6
View File
@@ -87,14 +87,13 @@ jobs:
context: .
file: ./Containerfile
push: false
pull: true # Zwingt Buildx, immer den neuesten Digest des Base-Images in der Registry zu prüfen
pull: true
tags: ${{ steps.metadata.outputs.tags }}
labels: ${{ steps.metadata.outputs.labels }}
# 1. Build-Cache aus der Registry laden & schreiben
cache-from: type=registry,ref=${{ env.IMAGE_REGISTRY }}/${{ env.IMAGE_NAME }}:buildcache
cache-to: type=registry,ref=${{ env.IMAGE_REGISTRY }}/${{ env.IMAGE_NAME }}:buildcache,mode=max
# 2. Ausgabe als OCI-Archiv für Skopeo
outputs: type=oci,dest=/tmp/image.tar
# Speichert den Build als OCI-Ordnerstruktur ab
outputs: type=oci,dest=/tmp/oci-image
- name: Push Image via Skopeo (zstd:chunked)
if: github.event_name != 'pull_request'
@@ -103,11 +102,11 @@ jobs:
for TAG in $TAGS; do
echo "Pushe ${TAG} via Skopeo mit zstd:chunked..."
docker run --rm \
-v /tmp/image.tar:/tmp/image.tar \
-v /tmp/oci-image:/tmp/oci-image \
quay.io/skopeo/stable copy \
--dest-creds "${{ github.repository_owner }}:${{ secrets.REGISTRY }}" \
--dest-compress-format zstd:chunked \
oci-archive:/tmp/image.tar \
oci:/tmp/oci-image \
"docker://${TAG}"
done