add profile

This commit is contained in:
Joseph Hanson 2024-09-13 19:58:13 -05:00
parent 2162517b12
commit 5bc01bd2bd
Signed by: jahanson
SSH key fingerprint: SHA256:vy6dKBECV522aPAwklFM3ReKAVB086rT3oWwiuiFG7o

View file

@ -1,10 +1,12 @@
#!/usr/bin/env bash #!/usr/bin/env bash
instance_name=$(incus launch nixos-gen/custom/fj-lxc-vm-x86_64 | grep -oP 'Instance name is: \K\S+') INCUS_PROFILE="forgejo-runner"
echo "The captured instance name is: $instance_name"
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 # 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 "Pushing token to instance"
echo "Process completed successfully" echo "Process completed successfully"