forgejo-ci-runners/.taskfiles/_scripts/launch.sh

11 lines
340 B
Bash
Raw Normal View History

2024-09-13 19:49:40 -05:00
#!/usr/bin/env bash
instance_name=$(incus launch nixos-gen/custom/fj-lxc-vm-x86_64 | grep -oP 'Instance name is: \K\S+')
echo "The captured instance name is: $instance_name"
# Call the push_token.sh script with the new instance name
./push_token.sh "$instance_name"
echo "Pushing token to instance"
echo "Process completed successfully"