From 0a8a6fdf36fb807392311a1722f1362285be547f Mon Sep 17 00:00:00 2001 From: Isaac True Date: Wed, 22 Nov 2023 13:45:31 +0100 Subject: [PATCH] ERL-467: github: workflows: nemos-images: build development profile If building a "reference" image, we want to use the development profile in order to include all snaps. Signed-off-by: Isaac True --- .github/workflows/nemos-images.yaml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/nemos-images.yaml b/.github/workflows/nemos-images.yaml index 1addf38..22d5c62 100644 --- a/.github/workflows/nemos-images.yaml +++ b/.github/workflows/nemos-images.yaml @@ -39,13 +39,18 @@ jobs: BUILD_DIR="$(mktemp -d)" # If we are building for amd64, then we can build natively. Otherwise, # we need to use the Kiwi boxbuild plugin to build in a VM + if [ "${{ matrix.config }}" = "reference" ]; then + PROFILE="development" + else + PROFILE="bootstrapped" + fi if [ "${{ matrix.arch }}" = "amd64" ]; then - sudo kiwi-ng --debug --profile bootstrapped \ + sudo kiwi-ng --debug --profile "${PROFILE}" \ --config nemos-images-${{ matrix.config }}-${{ matrix.series }}/kiwi.yaml \ system build --target-dir "${BUILD_DIR}" \ --description nemos-images-${{ matrix.config }}-${{ matrix.series }}/qemu-${{ matrix.arch}}/ else - sudo kiwi-ng --debug --profile bootstrapped \ + sudo kiwi-ng --debug --profile "${PROFILE}" \ system boxbuild \ --box ubuntu --aarch64 --machine=virt --no-accel --cpu cortex-a53 \ --box-memory=$(( 2 * 1024 )) --box-smp-cpus=2 -- \