From 9f339d16735017d00d2b9f1886973667fde4706c Mon Sep 17 00:00:00 2001 From: humocs-man <1+humocs-man@noreply.localhost> Date: Sun, 9 Aug 2026 18:47:24 +0000 Subject: [PATCH] .gitea/workflows/redhat_build.yml aktualisiert --- .gitea/workflows/redhat_build.yml | 24 +++++++++++++----------- 1 file changed, 13 insertions(+), 11 deletions(-) diff --git a/.gitea/workflows/redhat_build.yml b/.gitea/workflows/redhat_build.yml index c2523d9..c5e101b 100644 --- a/.gitea/workflows/redhat_build.yml +++ b/.gitea/workflows/redhat_build.yml @@ -100,22 +100,24 @@ 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 - # Erzeugt ein OCI-Layout als Ordner im Workspace - outputs: type=oci,dest=oci-layout + + outputs: type=oci,dest=oci-layout.tar - name: Push Image via Skopeo (zstd:chunked) if: github.event_name != 'pull_request' run: | TAGS="${{ steps.metadata.outputs.tags }}" + for TAG in $TAGS; do - echo "Pushe ${TAG} via Skopeo mit zstd:chunked..." - docker run --rm \ - -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:/workspace/oci-layout \ - "docker://${TAG}" + echo "Pushe ${TAG} via Skopeo mit zstd:chunked..." + + docker run --rm \ + -v "${{ github.workspace }}/oci-layout.tar:/workspace/oci-layout.tar:ro" \ + quay.io/skopeo/stable copy \ + --dest-creds "${{ github.repository_owner }}:${{ secrets.REGISTRY }}" \ + --dest-compress-format zstd:chunked \ + oci-archive:/workspace/oci-layout.tar \ + "docker://${TAG}" done - name: Install envsubst dependencies @@ -157,5 +159,5 @@ jobs: if: always() run: | echo "Räume temporäre Dateien und Buildx-Cache auf..." - rm -rf ${{ github.workspace }}/oci-layout + rm -f "${{ github.workspace }}/oci-layout.tar" docker buildx prune -a -f || true \ No newline at end of file