From 44076857a16f9af41a155637765a40e9c0f756e1 Mon Sep 17 00:00:00 2001 From: Din Music Date: Wed, 14 Feb 2024 13:25:38 +0100 Subject: [PATCH] .github/workflows: Add debian image test Signed-off-by: Din Music --- .github/workflows/image-debian.yaml | 55 +++++++++++++++++++++++++++++ 1 file changed, 55 insertions(+) create mode 100644 .github/workflows/image-debian.yaml diff --git a/.github/workflows/image-debian.yaml b/.github/workflows/image-debian.yaml new file mode 100644 index 00000000..8c776f82 --- /dev/null +++ b/.github/workflows/image-debian.yaml @@ -0,0 +1,55 @@ +name: Build Debian Image +on: + workflow_dispatch: + # schedule: + # # Run at 00:00 UTC every day. + # - cron: '0 0 * * *' + +jobs: + build: + runs-on: ubuntu-latest + strategy: + matrix: + architecture: + - amd64 + # - arm64 + release: + # - buster + # - bullseye + # - sid + # - bookworm + - trixie + variant: + # - default + - cloud + + steps: + - uses: actions/checkout@v4 + + - name: Build LXD Imagebuilder + run: | + pwd + ls + + git clone https://github.com/canonical/lxd-imagebuilder + cd lxd-imagebuilder + + make + + + +# - name: Build Debian Image +# run: | +# LXD_ARCH="${{ matrix.architecture }}" + +# TYPE="container" +# if [ "${LXD_ARCH}" = "amd64" ] || [ "${LXD_ARCH}" = "arm64" ]; then +# TYPE="container,vm" +# fi + +# exec sudo /lxd-ci/bin/build-distro /lxc-ci/images/debian.yaml \ +# ${INCUS_ARCHITECTURE} ${TYPE} 1800 ${WORKSPACE} \ +# -o image.architecture=${architecture} \ +# -o image.release=${release} -o image.variant=${variant} \ +# -o source.url="http://ftp.us.debian.org/debian" +