From 649bd09406c7d4d245c386c1c89613911e151cc6 Mon Sep 17 00:00:00 2001 From: Andreas Fritzler Date: Tue, 7 May 2024 11:18:24 +0200 Subject: [PATCH] Update gardenlinux dev build --- .../workflows/publish-gardenlinux-dev.yaml | 23 +++++++++++-------- 1 file changed, 13 insertions(+), 10 deletions(-) diff --git a/.github/workflows/publish-gardenlinux-dev.yaml b/.github/workflows/publish-gardenlinux-dev.yaml index 9b9ed66..f6d9cbb 100644 --- a/.github/workflows/publish-gardenlinux-dev.yaml +++ b/.github/workflows/publish-gardenlinux-dev.yaml @@ -43,9 +43,9 @@ jobs: - name: Create dummy files using dd in the current directory run: | - dd if=/dev/zero of=METAL_SQUASHFS_FILE.squashfs bs=1M count=1 - dd if=/dev/zero of=METAL_INITRD_FILE.initrd bs=1M count=1 - dd if=/dev/zero of=METAL_VMLINUZ_FILE.vmlinuz bs=1M count=1 + dd if=/dev/zero of=squashfs bs=1M count=1 + dd if=/dev/zero of=initrd bs=1M count=1 + dd if=/dev/zero of=vmlinuz bs=1M count=1 - name: List files in the current directory run: | @@ -60,11 +60,14 @@ jobs: - name: Push Artifact using ORAS run: | - file=$(ls .build/*.raw | head -n 1) + $KVM_RAW_FILE=$(ls .build/*.raw | head -n 1) + METAL_SQUASHFS_FILE=squashfs + METAL_INITRD_FILE=initrd + METAL_VMLINUZ_FILE=vmlinuz echo "Pushing files to ORAS..." - oras push ghcr.io/ironcore-dev/os-images/gardenlinux-dev:latest \ - $file:application/vnd.ironcore.image.rootfs.v1alpha1.rootfs \ - METAL_SQUASHFS_FILE.squashfs:application/vnd.ironcore.image.squashfs.v1alpha1.squashfs \ - METAL_INITRD_FILE.initrd:application/vnd.ironcore.image.initramfs.v1alpha1.initramfs \ - METAL_VMLINUZ_FILE.vmlinuz:application/vnd.ironcore.image.vmlinuz.v1alpha1.vmlinuz \ - --config config.json:application/vnd.ironcore.image.config.v1alpha1+json + oras push ghcr.io/ironcore-dev/os-images/gardenlinux:latest \ + $KVM_RAW_FILE:application/vnd.ironcore.image.rootfs.v1alpha1.rootfs \ + $METAL_SQUASHFS_FILE:application/vnd.ironcore.image.squashfs.v1alpha1.squashfs \ + $METAL_INITRD_FILE:application/vnd.ironcore.image.initramfs.v1alpha1.initramfs \ + $METAL_VMLINUZ_FILE:application/vnd.ironcore.image.vmlinuz.v1alpha1.vmlinuz \ + --config config.json:application/vnd.ironcore.image.config.v1alpha1+json