mirror of
https://github.com/rootzoll/raspiblitz.git
synced 2024-11-19 18:00:22 +01:00
4ab6c46a27
* add amd64 image build with lean and fatpack option * use the pi user for setup * add notes to ci readme * add gnome desktop to fatpack image, reduce to 30GB * documentation updates * install gnome with --force-yes * install gnome desktop non-interactively * change links to rootzoll dev * pass user and branch to build_sdcard.sh from PR * add user and branch to Makefile * Add arm64 rpi image build (#74) ci: * add arm64-rpi image build * rename to raspiblitz-amd64-debian-11.5-lean/fatpack * use rm -f to not exit with error * place amd64 images under ci/amd64/builds/ * make /dev/shm world writable for fatpack * fix vlc remove and --var syntax * remove sudo-s * leave update and upgrade to the build_sdcard.sh * increase image size to 16GB, rename build dir build_sdcard.sh: * detect raspios_arm64 with raspi.list * switch ssmtp to msmtp related: https://github.com/rootzoll/raspiblitz/pull/2232 Co-authored-by: rootzoll <johndoe@example.com> * i2pd: unified install from repo, /usr/sbin to PATH related: #2413, fixes amd64 build * update CHANGES.md * fix amd64 path in Makefile * use only qemu image, run on ubuntu-22.04 * use file_checksum for the arm64-rpi base image * Fix the local arm64-rpi image generation (#75) * add selfrun script * ubuntu: add universe repo and qemu-user-static * test on ubuntu live (jammy) * build from branches: [ "dev", "v1.8", "v1.9" ] * correct Makefile paths for the local run * make the local run non-interactive * improve readme and Makefile * increase disk image sizes to 32GB * set image sizes to 30 GB for amd64 and arm64-rpi * add network-manager for amd64 * add to readme * skip Code&Compile for VM builds * add to readme * amd64 base image update to debian 11.6.0 * remove debian version from filenames * skip Code&Compile for amd64 builds * Merge branch 'dev' into add-amd64-image-build * amd64: increase cpu and RAM, compile mempool last * trigger workflows only on scripts used or called * Update ci/arm64-rpi/packer.build.arm64-rpi.sh Co-authored-by: Daniel Bast <2790401+dbast@users.noreply.github.com> * arm64 remove setup-qemu-action, leave npm last * set only manual trigger for fatpack, edit triggers Co-authored-by: rootzoll <johndoe@example.com> Co-authored-by: Daniel Bast <2790401+dbast@users.noreply.github.com>
84 lines
3.1 KiB
Makefile
84 lines
3.1 KiB
Makefile
SHELL = /bin/bash
|
|
GITHUB_ACTOR = $(shell git remote -v | grep origin | head -1 | cut -d/ -f4)
|
|
GITHUB_HEAD_REF = $(shell git rev-parse --abbrev-ref HEAD)
|
|
|
|
amd64-lean-image:
|
|
# Run the build script
|
|
cd ci/amd64 && \
|
|
bash packer.build.amd64-debian.sh lean $(GITHUB_ACTOR) $(GITHUB_HEAD_REF) 0
|
|
|
|
# Compute the checksum of the qemu image
|
|
cd ci/amd64/builds/raspiblitz-amd64-debian-lean-qemu && \
|
|
sha256sum raspiblitz-amd64-debian-lean.qcow2 > raspiblitz-amd64-debian-lean.qcow2.sha256
|
|
|
|
# Compress the image
|
|
cd ci/amd64/builds/raspiblitz-amd64-debian-lean-qemu && \
|
|
gzip -v9 raspiblitz-amd64-debian-lean.qcow2
|
|
|
|
# Compute the checksum of the compressed image
|
|
cd ci/amd64/builds/raspiblitz-amd64-debian-lean-qemu && \
|
|
sha256sum raspiblitz-amd64-debian-lean.qcow2.gz > raspiblitz-amd64-debian-lean.qcow2.gz.sha256
|
|
|
|
# List the generated files
|
|
ls -lah ci/amd64/builds/raspiblitz-amd64-debian-lean-qemu/raspiblitz-amd64-debian-lean.qcow2.*
|
|
|
|
amd64-fatpack-image:
|
|
# Run the build script
|
|
cd ci/amd64 && \
|
|
bash packer.build.amd64-debian.sh fatpack $(GITHUB_ACTOR) $(GITHUB_HEAD_REF)
|
|
|
|
# Compute the checksum of the qemu image
|
|
cd ci/amd64/builds/raspiblitz-amd64-debian-fatpack-qemu && \
|
|
sha256sum raspiblitz-amd64-debian-fatpack.qcow2 > raspiblitz-amd64-debian-fatpack.qcow2.sha256
|
|
|
|
# Compress the image
|
|
cd ci/amd64/builds/raspiblitz-amd64-debian-fatpack-qemu && \
|
|
gzip -v9 raspiblitz-amd64-debian-fatpack.qcow2
|
|
|
|
# Compute the checksum of the compressed image
|
|
cd ci/amd64/builds/raspiblitz-amd64-debian-fatpack-qemu && \
|
|
sha256sum raspiblitz-amd64-debian-fatpack.qcow2.gz > raspiblitz-amd64-debian-fatpack.qcow2.gz.sha256
|
|
|
|
# List the generated files
|
|
ls -lah ci/amd64/builds/raspiblitz-amd64-debian-lean-qemu/raspiblitz-amd64-debian-fatpack.qcow2.*
|
|
|
|
arm64-rpi-lean-image:
|
|
# Run the build script
|
|
cd ci/arm64-rpi && \
|
|
bash packer.build.arm64-rpi.local.sh lean $(GITHUB_ACTOR) $(GITHUB_HEAD_REF)
|
|
|
|
# Compute the checksum of the raw image
|
|
cd ci/arm64-rpi/packer-builder-arm && \
|
|
sha256sum raspiblitz-arm64-rpi-lean.img > raspiblitz-arm64-rpi-lean.img.sha256
|
|
|
|
# Compress the image
|
|
cd ci/arm64-rpi/packer-builder-arm && \
|
|
gzip -v9 raspiblitz-arm64-rpi-lean.img
|
|
|
|
# Compute the checksum of the compressed image
|
|
cd ci/arm64-rpi/packer-builder-arm && \
|
|
sha256sum raspiblitz-arm64-rpi-lean.img.gz > raspiblitz-arm64-rpi-lean.img.gz.sha256
|
|
|
|
# List the generated files
|
|
ls -lah ci/arm64-rpi/packer-builder-arm/raspiblitz-arm64-rpi-lean.img.*
|
|
|
|
arm64-rpi-fatpack-image:
|
|
# Run the build script
|
|
cd ci/arm64-rpi && \
|
|
bash packer.build.arm64-rpi.local.sh fatpack $(GITHUB_ACTOR) $(GITHUB_HEAD_REF)
|
|
|
|
# Compute the checksum of the raw image
|
|
cd ci/arm64-rpi/packer-builder-arm && \
|
|
sha256sum raspiblitz-arm64-rpi-fatpack.img > raspiblitz-arm64-rpi-fatpack.img.sha256
|
|
|
|
# Compress the image
|
|
cd ci/arm64-rpi/packer-builder-arm && \
|
|
gzip -v9 raspiblitz-arm64-rpi-fatpack.img
|
|
|
|
# Compute the checksum of the compressed image
|
|
cd ci/arm64-rpi/packer-builder-arm && \
|
|
sha256sum raspiblitz-arm64-rpi-fatpack.img.gz > raspiblitz-arm64-rpi-fatpack.img.gz.sha256
|
|
|
|
# List the generated files
|
|
ls -lah ci/arm64-rpi/packer-builder-arm/raspiblitz-arm64-rpi-fatpack.img.*
|