.gitea/workflows/redhat_build.yml aktualisiert
This commit is contained in:
@@ -100,8 +100,8 @@ jobs:
|
|||||||
labels: ${{ steps.metadata.outputs.labels }}
|
labels: ${{ steps.metadata.outputs.labels }}
|
||||||
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
|
||||||
# Speichert den OCI-Tarball direkt im Workspace (relativer Pfad)
|
# Erzeugt ein OCI-Layout als Ordner im Workspace
|
||||||
outputs: type=oci,dest=image.tar
|
outputs: type=oci,dest=oci-layout
|
||||||
|
|
||||||
- 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'
|
||||||
@@ -110,11 +110,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 ${{ github.workspace }}/image.tar:/workspace/image.tar \
|
-v ${{ github.workspace }}/oci-layout:/workspace/oci-layout \
|
||||||
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:/workspace/image.tar \
|
oci:/workspace/oci-layout \
|
||||||
"docker://${TAG}"
|
"docker://${TAG}"
|
||||||
done
|
done
|
||||||
|
|
||||||
@@ -157,5 +157,5 @@ jobs:
|
|||||||
if: always()
|
if: always()
|
||||||
run: |
|
run: |
|
||||||
echo "Räume temporäre Dateien und Buildx-Cache auf..."
|
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
|
docker buildx prune -a -f || true
|
||||||
Reference in New Issue
Block a user