mirror of
https://github.com/juanfont/headscale.git
synced 2025-09-25 17:51:11 +02:00
WIP (should fail though)
This commit is contained in:
parent
e87c7612bc
commit
f2c95b473a
22
.github/workflows/ci.yml
vendored
22
.github/workflows/ci.yml
vendored
@ -103,6 +103,24 @@ jobs:
|
||||
echo "DB_USER=foo" >> $GITHUB_ENV
|
||||
echo "DB_PASS=bar" >> $GITHUB_ENV
|
||||
|
||||
- name: Create namespace
|
||||
- name: Launch headscale
|
||||
run: |
|
||||
./headscale namespace create test1 -o json-line
|
||||
./headscale serve &
|
||||
|
||||
- name: Create namespace
|
||||
run: |
|
||||
./headscale namespace create test1 -o json-line
|
||||
|
||||
- name: Create AuthKey
|
||||
run: |
|
||||
echo "AUTHKEY=`./headscale -n test1 preauthkey create -o json-line | jq -r '.Key'`" >> $GITHUB_ENV
|
||||
|
||||
- name: Register tailscale node
|
||||
run: |
|
||||
sudo tailscale up -login-server http://127.0.0.1:8000 -authkey $AUTHKEY
|
||||
|
||||
|
||||
- NAME: Check if headscale reports the node
|
||||
./headscale -n test1 node list -o json-line | test $(jq length) -eq 5
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user