From bc8126a282418a9abe076bda6098b5a3c0db704c Mon Sep 17 00:00:00 2001 From: Andreas Fritzler Date: Tue, 7 May 2024 10:56:37 +0200 Subject: [PATCH] Update gardenlinux dev build --- .../workflows/publish-gardenlinux-dev.yaml | 27 +++++++++++-------- 1 file changed, 16 insertions(+), 11 deletions(-) diff --git a/.github/workflows/publish-gardenlinux-dev.yaml b/.github/workflows/publish-gardenlinux-dev.yaml index ab0ead9..fa6b822 100644 --- a/.github/workflows/publish-gardenlinux-dev.yaml +++ b/.github/workflows/publish-gardenlinux-dev.yaml @@ -1,4 +1,4 @@ -name: Build Gardenlinux Dev +name: Publish GardenLinux Dev Image on: workflow_dispatch: @@ -41,11 +41,15 @@ jobs: run: | ./build kvm - - name: Create dummy files using dd + - name: Create dummy files using dd in the current directory run: | - dd if=/dev/zero of=.build/METAL_SQUASHFS_FILE.squashfs bs=1M count=1 - dd if=/dev/zero of=.build/METAL_INITRD_FILE.initrd bs=1M count=1 - dd if=/dev/zero of=.build/METAL_VMLINUZ_FILE.vmlinuz bs=1M count=1 + 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 + + - name: List files in the current directory + run: | + ls -alh - name: Login to GitHub Container Registry uses: docker/login-action@v1 @@ -56,10 +60,11 @@ jobs: - name: Push Artifact using ORAS run: | - file=$(ls .build/*.raw | head -n 1) + file=$(ls ./*.raw | head -n 1) + echo "Pushing files to ORAS..." oras push ghcr.io/ironcore-dev/os-images/gardenlinux-dev:latest \ - $file:application/vnd.ironcore.image.rootfs.v1alpha1.rootfs \ - .build/METAL_SQUASHFS_FILE.squashfs:application/vnd.ironcore.image.squashfs.v1alpha1.squashfs \ - .build/METAL_INITRD_FILE.initrd:application/vnd.ironcore.image.initramfs.v1alpha1.initramfs \ - .build/METAL_VMLINUZ_FILE.vmlinuz:application/vnd.ironcore.image.vmlinuz.v1alpha1.vmlinuz \ - --config config.json:application/vnd.ironcore.image.config.v1alpha1+json + $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