Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 28 additions & 0 deletions .github/workflows/cloudflare.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Validate Cloudflare Sandbox

on:
pull_request:
paths:
- deploy/cloudflare/**
- .github/workflows/cloudflare.yml

permissions:
contents: read

jobs:
worker:
runs-on: ubuntu-latest
defaults:
run:
working-directory: deploy/cloudflare
steps:
- uses: actions/checkout@v6
- uses: actions/setup-node@v6
with:
node-version: '24'
cache: npm
cache-dependency-path: deploy/cloudflare/package-lock.json
- run: npm ci
- run: npm run check
- run: npm test
- run: npx wrangler deploy --dry-run
2 changes: 2 additions & 0 deletions deploy/cloudflare/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
node_modules/
.wrangler/
10 changes: 10 additions & 0 deletions deploy/cloudflare/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
FROM tailscale/tailscale:v1.102.5 AS tailscale
FROM ubuntu:24.04

RUN apt-get update \
&& apt-get install -y --no-install-recommends bash ca-certificates sudo jq git gh openssh-server \
&& rm -rf /var/lib/apt/lists/*

COPY --from=tailscale /usr/local/bin/tailscale /usr/local/bin/tailscaled /usr/local/bin/

CMD ["sleep", "infinity"]
Loading
Loading