-
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
43 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
name: tailscale-rdesktop | ||
on: | ||
workflow_dispatch: | ||
|
||
jobs: | ||
rdesktop-test: | ||
runs-on: ubuntu-24.04 | ||
container: | ||
image: ghcr.io/gbraad-devenv/fedora/rdesktop:41 | ||
volumes: | ||
- workspace:/workspace | ||
options: --cpus 1 | ||
|
||
steps: | ||
- name: Tailscale setup (root) | ||
run: | | ||
sudo dnf update -y tailscale | ||
sudo sed -i 's|--state=/var/lib/tailscale/tailscaled.state|--state=mem:|' /etc/init.d/tailscaled | ||
sudo sed -i 's|--socket=/run/tailscale/tailscaled.sock|--socket=/var/run/tailscale/tailscaled.sock|' /etc/init.d/tailscaled | ||
sudo sed -i '/--port 41641/ s/$/\n --tun=userspace-networking \\/' /etc/init.d/tailscaled | ||
- name: Tailscale setup (user) | ||
run: | | ||
sudo chmod o+w /var/run/tailscale/ | ||
/etc/init.d/tailscaled start | ||
until tailscale up | ||
do | ||
sleep 0.1 | ||
done | ||
tailscale set --hostname github-${HOSTNAME} | ||
env: | ||
TAILSCALE_AUTHKEY: ${{ secrets.TAILSCALE_AUTHKEY}} | ||
- name: Prepare VNC server environment | ||
run: | | ||
su - gbraad -c 'echo "passwd\npasswd\n" | kasmvncpasswd -u gbraad -w' | ||
su - gbraad -c 'touch ~/.vnc/.de-was-selected' | ||
- name: Start `kasmvncserver` | ||
run: | | ||
su - gbraad -c 'kasmvncserver' | ||
- name: Hang around | ||
run: | | ||
whoami | ||
tailscale ip | ||
sleep infinity |