Skip to content

tailscale-code

tailscale-code #5

name: tailscale-code
on:
workflow_dispatch:
jobs:
code-test:
runs-on: ubuntu-24.04
steps:
- name: Run system container with `podman`
run: |
podman run -d --name code ghcr.io/gbraad-devenv/fedora/code:41
- name: Tailscale setup (root)
run: |
podman exec code systemctl enable --now tailscaled
until podman exec code tailscale up --auth-key ${TAILSCALE_AUTHKEY}
do
sleep 0.1
done
podman exec code tailscale set --ssh
podman exec code tailscale set --hostname github-${HOSTNAME}
env:
TAILSCALE_AUTHKEY: ${{ secrets.TAILSCALE_AUTHKEY}}
- name: Hang around
run: |
IP=`podman exec code tailscale ip -4`
podman exec code code serve-web --without-connection-token
echo "Open in your web browser: https://${IP}:8000"
sleep infinity