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 23fb38c commit bc8126a
Showing 1 changed file with 16 additions and 11 deletions.
27 changes: 16 additions & 11 deletions .github/workflows/publish-gardenlinux-dev.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Build Gardenlinux Dev
name: Publish GardenLinux Dev Image

on:
workflow_dispatch:
Expand Down Expand Up @@ -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
Expand All @@ -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

0 comments on commit bc8126a

Please sign in to comment.