Skip to content
This repository has been archived by the owner on Aug 6, 2024. It is now read-only.

Image

Image #12

Workflow file for this run

name: Image
on:
workflow_dispatch:
jobs:
debian-image:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
arch: [ amd64, arm64 ]
steps:
- uses: actions/checkout@v4
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Build the image
run: ./build ostreeImage-${{ matrix.arch }}
working-directory: ./debian
- name: Rename build artifact
run: mv *ostreeImage-${{ matrix.arch }}-trixie-*.ostree.raw ostree-debian-image-${{ matrix.arch }}.raw
working-directory: ./debian/.build
- name: Upload debian ${{ matrix.arch }} image
uses: actions/upload-artifact@v3
with:
name: ostree-debian-image-${{ matrix.arch }}
path: debian/.build/ostree-debian-image-${{ matrix.arch }}.raw
retention-days: 2
gardenlinux-image:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
arch: [ amd64, arm64 ]
platform: [ kvm, metal ]
steps:
- uses: actions/checkout@v4
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Configure Build Variant
run: echo ${{ matrix.platform }} > features/ostreeImage/BUILD_VARIANT
working-directory: ./gardenlinux
- name: Build the image
run: ./build ostreeImage-${{ matrix.arch }}
working-directory: ./gardenlinux
- name: Rename build artifact
run: mv *ostreeImage-${{ matrix.arch }}-today-*.ostree.raw ostree-gardenlinux-image-${{ matrix.platform }}-${{ matrix.arch }}.raw
working-directory: ./gardenlinux/.build
- name: Upload gardenlinux ${{ matrix.platform }} ${{ matrix.arch }} image
uses: actions/upload-artifact@v3
with:
name: ostree-gardenlinux-image-${{ matrix.platform }}-${{ matrix.arch }}
path: gardenlinux/.build/ostree-gardenlinux-image-${{ matrix.platform }}-${{ matrix.arch }}.raw
retention-days: 2