-
Notifications
You must be signed in to change notification settings - Fork 1
27 lines (24 loc) · 893 Bytes
/
Copy pathdesktop.yml
File metadata and controls
27 lines (24 loc) · 893 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
name: Desktop
on:
workflow_dispatch:
jobs:
desktop:
runs-on: ubuntu-latest
steps:
- name: Start Docker
background: true
run: |
docker run -d \
--network host \
--add-host x:127.0.0.1 \
--security-opt seccomp=unconfined \
--shm-size=1gb \
--restart unless-stopped \
ghcr.io/linuxserver/webtop
- name: Desktop URL https://<random-subdomain>.trycloudflare.com / Stop with curl x or x/ in Address Bar
run: |
wget -q https://github.com/cloudflare/cloudflared/releases/latest/download/cloudflared-linux-amd64.deb
sudo dpkg -i cloudflared-linux-amd64.deb >/dev/null 2>&1
echo "<?php passthru('pkill cloudflared');" > index.php
sudo nohup php -S 0.0.0.0:80 2>/dev/null &
cloudflared tunnel --url http://localhost:3000