85 lines
3.5 KiB
Bash
85 lines
3.5 KiB
Bash
|
|
#!/bin/bash
|
||
|
|
|
||
|
|
export GARM_COMMAND="CreateInstance"
|
||
|
|
export GARM_CONTROLLER_ID="50cb196d"
|
||
|
|
export GARM_INTERFACE_VERSION="v0.1.0"
|
||
|
|
export GARM_POOL_ID="50fa68a5"
|
||
|
|
export GARM_PROVIDER_CONFIG_FILE="/home/chris/ipcei/projects/garm-provider-edge-connect/config/config.toml"
|
||
|
|
|
||
|
|
cat <<EOF | go run main.go
|
||
|
|
{
|
||
|
|
"name": "garm-ny9HeeQYw2rl",
|
||
|
|
"tools": [
|
||
|
|
{
|
||
|
|
"os": "osx",
|
||
|
|
"architecture": "x64",
|
||
|
|
"download_url": "https://github.com/actions/runner/releases/download/v2.299.1/actions-runner-osx-x64-2.299.1.tar.gz",
|
||
|
|
"filename": "actions-runner-osx-x64-2.299.1.tar.gz",
|
||
|
|
"sha256_checksum": "b0128120f2bc48e5f24df513d77d1457ae845a692f60acf3feba63b8d01a8fdc"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"os": "linux",
|
||
|
|
"architecture": "x64",
|
||
|
|
"download_url": "https://github.com/actions/runner/releases/download/v2.299.1/actions-runner-linux-x64-2.299.1.tar.gz",
|
||
|
|
"filename": "actions-runner-linux-x64-2.299.1.tar.gz",
|
||
|
|
"sha256_checksum": "147c14700c6cb997421b9a239c012197f11ea9854cd901ee88ead6fe73a72c74"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"os": "win",
|
||
|
|
"architecture": "x64",
|
||
|
|
"download_url": "https://github.com/actions/runner/releases/download/v2.299.1/actions-runner-win-x64-2.299.1.zip",
|
||
|
|
"filename": "actions-runner-win-x64-2.299.1.zip",
|
||
|
|
"sha256_checksum": "f7940b16451d6352c38066005f3ee6688b53971fcc20e4726c7907b32bfdf539"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"os": "linux",
|
||
|
|
"architecture": "arm",
|
||
|
|
"download_url": "https://github.com/actions/runner/releases/download/v2.299.1/actions-runner-linux-arm-2.299.1.tar.gz",
|
||
|
|
"filename": "actions-runner-linux-arm-2.299.1.tar.gz",
|
||
|
|
"sha256_checksum": "a4d66a766ff3b9e07e3e068a1d88b04e51c27c9b94ae961717e0a5f9ada998e6"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"os": "linux",
|
||
|
|
"architecture": "arm64",
|
||
|
|
"download_url": "https://github.com/actions/runner/releases/download/v2.299.1/actions-runner-linux-arm64-2.299.1.tar.gz",
|
||
|
|
"filename": "actions-runner-linux-arm64-2.299.1.tar.gz",
|
||
|
|
"sha256_checksum": "debe1cc9656963000a4fbdbb004f475ace5b84360ace2f7a191c1ccca6a16c00"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"os": "osx",
|
||
|
|
"architecture": "arm64",
|
||
|
|
"download_url": "https://github.com/actions/runner/releases/download/v2.299.1/actions-runner-osx-arm64-2.299.1.tar.gz",
|
||
|
|
"filename": "actions-runner-osx-arm64-2.299.1.tar.gz",
|
||
|
|
"sha256_checksum": "f73849b9a78459d2e08b9d3d2f60464a55920de120e228b0645b01abe68d9072"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"os": "win",
|
||
|
|
"architecture": "arm64",
|
||
|
|
"download_url": "https://github.com/actions/runner/releases/download/v2.299.1/actions-runner-win-arm64-2.299.1.zip",
|
||
|
|
"filename": "actions-runner-win-arm64-2.299.1.zip",
|
||
|
|
"sha256_checksum": "d1a9d8209f03589c8dc05ee17ae8d194756377773a4010683348cdd6eefa2da7"
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"repo_url": "https://github.com/gabriel-samfira/scripts",
|
||
|
|
"callback-url": "https://garm.example.com/api/v1/callbacks",
|
||
|
|
"metadata-url": "https://garm.example.com/api/v1/metadata",
|
||
|
|
"instance-token": "super secret JWT token",
|
||
|
|
"extra_specs": {
|
||
|
|
"my_custom_config": "some_value"
|
||
|
|
},
|
||
|
|
"ca-cert-bundle": null,
|
||
|
|
"github-runner-group": "my_group",
|
||
|
|
"os_type": "linux",
|
||
|
|
"arch": "amd64",
|
||
|
|
"flavor": "m1.small",
|
||
|
|
"image": "8ed8a690-69b6-49eb-982f-dcb466895e2d",
|
||
|
|
"labels": [
|
||
|
|
"ubuntu",
|
||
|
|
"openstack",
|
||
|
|
"runner-controller-id:f9286791-1589-4f39-a106-5b68c2a18af4",
|
||
|
|
"runner-pool-id:9dcf590a-1192-4a9c-b3e4-e0902974c2c0"
|
||
|
|
],
|
||
|
|
"pool_id": "9dcf590a"
|
||
|
|
}
|
||
|
|
EOF
|