This commit is contained in:
1 parent
ebec893a85
commit
edd61681dd
1 file changed
+31
@@ -0,0 +1,31 @@
|
||||
name: Komodo Setup (throwaway)
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- komodo-setup
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
inspect:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Inspect Komodo
|
||||
env:
|
||||
KOMODO_URL: ${{ secrets.KOMODO_URL }}
|
||||
KOMODO_API_KEY: ${{ secrets.KOMODO_API_KEY }}
|
||||
KOMODO_API_SECRET: ${{ secrets.KOMODO_API_SECRET }}
|
||||
run: |
|
||||
set -eu
|
||||
KOMODO_URL="${KOMODO_URL%/}"
|
||||
api() {
|
||||
curl -sS -X POST "${KOMODO_URL}$1" \
|
||||
-H 'Content-Type: application/json' \
|
||||
-H "x-api-key: ${KOMODO_API_KEY}" \
|
||||
-H "x-api-secret: ${KOMODO_API_SECRET}" \
|
||||
-d "$2"
|
||||
}
|
||||
echo "=== ListServers ==="
|
||||
api /read/ListServers '{}' | python3 -m json.tool
|
||||
echo "=== GetStack qbit-maid ==="
|
||||
api /read/GetStack '{"stack":"qbit-maid"}' | python3 -m json.tool
|
||||
Reference in new issue
Block a user