.gitea/workflows/redhat_build.yml aktualisiert
This commit is contained in:
@@ -87,14 +87,13 @@ jobs:
|
|||||||
context: .
|
context: .
|
||||||
file: ./Containerfile
|
file: ./Containerfile
|
||||||
push: false
|
push: false
|
||||||
pull: true # Zwingt Buildx, immer den neuesten Digest des Base-Images in der Registry zu prüfen
|
pull: true
|
||||||
tags: ${{ steps.metadata.outputs.tags }}
|
tags: ${{ steps.metadata.outputs.tags }}
|
||||||
labels: ${{ steps.metadata.outputs.labels }}
|
labels: ${{ steps.metadata.outputs.labels }}
|
||||||
# 1. Build-Cache aus der Registry laden & schreiben
|
|
||||||
cache-from: type=registry,ref=${{ env.IMAGE_REGISTRY }}/${{ env.IMAGE_NAME }}:buildcache
|
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
|
cache-to: type=registry,ref=${{ env.IMAGE_REGISTRY }}/${{ env.IMAGE_NAME }}:buildcache,mode=max
|
||||||
# 2. Ausgabe als OCI-Archiv für Skopeo
|
# Speichert den Build als OCI-Ordnerstruktur ab
|
||||||
outputs: type=oci,dest=/tmp/image.tar
|
outputs: type=oci,dest=/tmp/oci-image
|
||||||
|
|
||||||
- name: Push Image via Skopeo (zstd:chunked)
|
- name: Push Image via Skopeo (zstd:chunked)
|
||||||
if: github.event_name != 'pull_request'
|
if: github.event_name != 'pull_request'
|
||||||
@@ -103,11 +102,11 @@ jobs:
|
|||||||
for TAG in $TAGS; do
|
for TAG in $TAGS; do
|
||||||
echo "Pushe ${TAG} via Skopeo mit zstd:chunked..."
|
echo "Pushe ${TAG} via Skopeo mit zstd:chunked..."
|
||||||
docker run --rm \
|
docker run --rm \
|
||||||
-v /tmp/image.tar:/tmp/image.tar \
|
-v /tmp/oci-image:/tmp/oci-image \
|
||||||
quay.io/skopeo/stable copy \
|
quay.io/skopeo/stable copy \
|
||||||
--dest-creds "${{ github.repository_owner }}:${{ secrets.REGISTRY }}" \
|
--dest-creds "${{ github.repository_owner }}:${{ secrets.REGISTRY }}" \
|
||||||
--dest-compress-format zstd:chunked \
|
--dest-compress-format zstd:chunked \
|
||||||
oci-archive:/tmp/image.tar \
|
oci:/tmp/oci-image \
|
||||||
"docker://${TAG}"
|
"docker://${TAG}"
|
||||||
done
|
done
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user