aboutsummaryrefslogtreecommitdiff
path: root/app/drone-ci/build/Makefile
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2022-05-30 14:57:05 +0200
committerAlex Auvolat <alex@adnab.me>2022-05-30 14:57:05 +0200
commitd47d4e93ab8682710e80eec8c7c9d6a7d2f14202 (patch)
treea0039fb674a7150c0338707606a20c9d62ced1e5 /app/drone-ci/build/Makefile
parent2d9adf82d04261f420af4cc5482e442297741a5d (diff)
downloadnixcfg-d47d4e93ab8682710e80eec8c7c9d6a7d2f14202.tar.gz
nixcfg-d47d4e93ab8682710e80eec8c7c9d6a7d2f14202.zip
Work on drone runner as VM
Diffstat (limited to 'app/drone-ci/build/Makefile')
-rw-r--r--app/drone-ci/build/Makefile8
1 files changed, 8 insertions, 0 deletions
diff --git a/app/drone-ci/build/Makefile b/app/drone-ci/build/Makefile
new file mode 100644
index 0000000..2814a0d
--- /dev/null
+++ b/app/drone-ci/build/Makefile
@@ -0,0 +1,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
+