.gitea/workflows/redhat_build.yml aktualisiert
This commit is contained in:
@@ -92,8 +92,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 Build als OCI-Ordnerstruktur ab
|
||||
outputs: type=oci,dest=/tmp/oci-image
|
||||
# Exporter als OCI-Tarball anfordern
|
||||
outputs: type=oci,dest=/tmp/image.tar
|
||||
|
||||
- name: Push Image via Skopeo (zstd:chunked)
|
||||
if: github.event_name != 'pull_request'
|
||||
@@ -102,11 +102,11 @@ jobs:
|
||||
for TAG in $TAGS; do
|
||||
echo "Pushe ${TAG} via Skopeo mit zstd:chunked..."
|
||||
docker run --rm \
|
||||
-v /tmp/oci-image:/tmp/oci-image \
|
||||
-v /tmp/image.tar:/tmp/image.tar \
|
||||
quay.io/skopeo/stable copy \
|
||||
--dest-creds "${{ github.repository_owner }}:${{ secrets.REGISTRY }}" \
|
||||
--dest-compress-format zstd:chunked \
|
||||
oci:/tmp/oci-image \
|
||||
oci-archive:/tmp/image.tar \
|
||||
"docker://${TAG}"
|
||||
done
|
||||
|
||||
|
||||
Reference in New Issue
Block a user