aboutsummaryrefslogtreecommitdiff
path: root/app/drone-ci/build/Makefile
blob: 2814a0dc047a090815932e1418ba72b51f4c35dc (plain) (blame)
1
2
3
4
5
6
7
8
.PHONY: all

all:
	nix-build '<nixpkgs/nixos>' -A config.system.build.qcow2 --arg configuration "{ imports = [ ./build-qcow2.nix ]; }" --show-trace
	zstd -7 -i result/nixos.qcow2 -o drone-runner.qcow2.zst -f
	RESULTPATH=`readlink result`; rm result; nix-store --delete $$RESULTPATH
	rclone copy drone-runner.qcow2.zst grgdf:alex/ -vv