Skip to content

Commit

Permalink
Update gardenlinux dev build
Browse files Browse the repository at this point in the history
  • Loading branch information
afritzler committed May 7, 2024
1 parent efb810b commit 649bd09
Showing 1 changed file with 13 additions and 10 deletions.
23 changes: 13 additions & 10 deletions .github/workflows/publish-gardenlinux-dev.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand All @@ -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

0 comments on commit 649bd09

Please sign in to comment.