.gitea/workflows/redhat_build.yml aktualisiert
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user