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

13 lines
403 B
Bash
Raw Permalink Normal View History

2024-09-13 19:49:40 -05:00
#!/usr/bin/env bash
2024-09-13 19:58:13 -05:00
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"
2024-09-13 19:49:40 -05:00
# Call the push_token.sh script with the new instance name
2024-09-13 19:58:13 -05:00
./push_token.sh "$INSTANCE_NAME"
2024-09-13 19:49:40 -05:00
echo "Pushing token to instance"
echo "Process completed successfully"