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