From 5bc01bd2bd61ded5cde9ccdf8fe628057112c361 Mon Sep 17 00:00:00 2001 From: Joseph Hanson Date: Fri, 13 Sep 2024 19:58:13 -0500 Subject: [PATCH] add profile --- .taskfiles/_scripts/launch.sh | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.taskfiles/_scripts/launch.sh b/.taskfiles/_scripts/launch.sh index 5bf11e1..de2468d 100644 --- a/.taskfiles/_scripts/launch.sh +++ b/.taskfiles/_scripts/launch.sh @@ -1,10 +1,12 @@ #!/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" +INCUS_PROFILE="forgejo-runner" + +INSTANCE_NAME=$(incus launch nixos-gen/custom/fj-lxc-vm-x86_64 -p ${INCUS_PROFILE:-'default'} | 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" +./push_token.sh "$INSTANCE_NAME" echo "Pushing token to instance" echo "Process completed successfully"