Skip to content

Commit

Permalink
Refactor rdesktop actions
Browse files Browse the repository at this point in the history
  • Loading branch information
gbraad authored Jan 8, 2025
1 parent 6fb7be8 commit 4169f93
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 4 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/tailscale-coder.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,11 @@ jobs:
podman run -d --name coder ghcr.io/gbraad-devenv/fedora/coder:41
- name: Tailscale setup (root)
run: |
until podman exec coder tailscale up --auth-key ${TAILSCALE_AUTHKEY}
until podman exec coder tailscale up --auth-key ${TAILSCALE_AUTHKEY} --hostname github-${HOSTNAME}
do
sleep 0.1
done
podman exec coder tailscale set --ssh
podman exec coder tailscale set --hostname github-${HOSTNAME}
env:
TAILSCALE_AUTHKEY: ${{ secrets.TAILSCALE_AUTHKEY}}
- name: Hang around
Expand Down
30 changes: 30 additions & 0 deletions .github/workflows/tailscale-rdesktop-code.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: tailscale-rdesktop-code
on:
workflow_dispatch:

jobs:
rdesktop-test:
runs-on: ubuntu-24.04

steps:
- name: Run system container with `podman`
run: |
podman run -d --name rdesktop ghcr.io/gbraad-devenv/fedora/code:41
- name: Tailscale setup (root)
run: |
until podman exec rdesktop tailscale up --auth-key ${TAILSCALE_AUTHKEY} --hostname github-${HOSTNAME}
do
sleep 0.1
done
podman exec rdesktop tailscale set --ssh
env:
TAILSCALE_AUTHKEY: ${{ secrets.TAILSCALE_AUTHKEY}}
- name: Hang around
run: |
until podman exec rdesktop systemctl is-active kasmvncserver
do
sleep 1
done
IP=`podman exec rdesktop tailscale ip -4`
echo "Open in your web browser: https://${IP}:8444"
sleep infinity
3 changes: 1 addition & 2 deletions .github/workflows/tailscale-rdesktop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,11 @@ jobs:
podman run -d --name rdesktop ghcr.io/gbraad-devenv/fedora/rdesktop:41
- name: Tailscale setup (root)
run: |
until podman exec rdesktop tailscale up --auth-key ${TAILSCALE_AUTHKEY}
until podman exec rdesktop tailscale up --auth-key ${TAILSCALE_AUTHKEY} --hostname github-${HOSTNAME}
do
sleep 0.1
done
podman exec rdesktop tailscale set --ssh
podman exec rdesktop tailscale set --hostname github-${HOSTNAME}
env:
TAILSCALE_AUTHKEY: ${{ secrets.TAILSCALE_AUTHKEY}}
- name: Hang around
Expand Down

0 comments on commit 4169f93

Please sign in to comment.