.gitea/workflows/redhat_build.yml aktualisiert

This commit is contained in:
2026-08-09 18:26:52 +00:00
parent 8cedd73647
commit ac6bfbcce7
+5 -5
View File
@@ -100,8 +100,8 @@ jobs:
labels: ${{ steps.metadata.outputs.labels }}
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
# Speichert den OCI-Tarball direkt im Workspace (relativer Pfad)
outputs: type=oci,dest=image.tar
# Erzeugt ein OCI-Layout als Ordner im Workspace
outputs: type=oci,dest=oci-layout
- name: Push Image via Skopeo (zstd:chunked)
if: github.event_name != 'pull_request'
@@ -110,11 +110,11 @@ jobs:
for TAG in $TAGS; do
echo "Pushe ${TAG} via Skopeo mit zstd:chunked..."
docker run --rm \
-v ${{ github.workspace }}/image.tar:/workspace/image.tar \
-v ${{ github.workspace }}/oci-layout:/workspace/oci-layout \
quay.io/skopeo/stable copy \
--dest-creds "${{ github.repository_owner }}:${{ secrets.REGISTRY }}" \
--dest-compress-format zstd:chunked \
oci-archive:/workspace/image.tar \
oci:/workspace/oci-layout \
"docker://${TAG}"
done
@@ -157,5 +157,5 @@ jobs:
if: always()
run: |
echo "Räume temporäre Dateien und Buildx-Cache auf..."
rm -f ${{ github.workspace }}/image.tar
rm -rf ${{ github.workspace }}/oci-layout
docker buildx prune -a -f || true