Update comments in build.yml for clarity
This commit is contained in:
@@ -153,7 +153,7 @@ jobs:
|
||||
username: ${{ github.actor }}
|
||||
password: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
# Ersetze den Push-Block durch diesen hier:
|
||||
# Ersetze den Push-Block durch diesen hier:
|
||||
- name: Push to GHCR with zstd using Skopeo (OCI Intermediate Step)
|
||||
id: push
|
||||
if: github.event_name != 'pull_request' && github.ref == format('refs/heads/{0}', github.event.repository.default_branch)
|
||||
@@ -164,14 +164,14 @@ jobs:
|
||||
for tag in ${{ steps.metadata.outputs.tags }}; do
|
||||
echo "Processing tag: $tag"
|
||||
|
||||
# SCHRITT 1: Lokal von Docker-Storage zu OCI-Format konvertieren
|
||||
# Hier nutzen wir das OCI-Format, das das --compression Flag versteht.
|
||||
# SCHRITT 1: Lokal vom Podman-Speicher zum OCI-Format konvertieren
|
||||
# WICHTIG: Wir nutzen 'containers-storage:' statt 'docker://'
|
||||
# Damit sucht skopeo lokal auf dem Runner und nicht auf Docker Hub!
|
||||
skopeo copy \
|
||||
docker://${{ env.IMAGE_NAME }}:${{ env.DEFAULT_TAG }} \
|
||||
containers-storage:${{ env.IMAGE_NAME }}:${{ env.DEFAULT_TAG }} \
|
||||
oci:./tmp-oci-image
|
||||
|
||||
# SCHRITT 2: Von OCI-Verzeichnis zur Registry pushen mit zstd
|
||||
# Jetzt wenden wir die Kompression explizit an.
|
||||
skopeo copy \
|
||||
--compression zstd \
|
||||
oci:./tmp-oci-image \
|
||||
@@ -186,7 +186,6 @@ jobs:
|
||||
DEFAULT_TAG: ${{ env.DEFAULT_TAG }}
|
||||
|
||||
|
||||
|
||||
# OPTIONAL: Image Signing with Cosign
|
||||
# Signing is disabled by default. To enable, see README.md "Optional: Enable Image Signing" section.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user