yay
This commit is contained in:
parent
a8aa633c49
commit
de99267348
11 changed files with 55 additions and 252 deletions
9
scripts/build_nixos_image.sh
Normal file
9
scripts/build_nixos_image.sh
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
#!/bin/bash
|
||||
set -euo pipefail
|
||||
|
||||
# This script assumes 'flake.nix' and 'configuration.nix' are in the parent directory
|
||||
# and outputs the result to a symlink named 'result'
|
||||
|
||||
echo "Building NixOS image..."
|
||||
nix build .#nixosConfigurations.proxmox-vm.config.system.build.qemu-image
|
||||
echo "NixOS image build complete."
|
||||
13
scripts/run_ancible_ci.sh
Normal file
13
scripts/run_ancible_ci.sh
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
#!/bin/bash
|
||||
set -euo pipefail
|
||||
|
||||
# Navigate to the ansible directory
|
||||
cd ansible
|
||||
|
||||
# Run the image deployment playbook
|
||||
echo "Running Ansible upload-template playbook..."
|
||||
ansible-playbook upload-template.yml \
|
||||
-e "cpu_cores=4" \
|
||||
-e "memory_mb=4096"
|
||||
|
||||
echo "Ansible playbook completed."
|
||||
Loading…
Add table
Add a link
Reference in a new issue