forked from templates/starter
chore: minimal static deploy check (Forgejo Actions pipeline)
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
parent
3122c56a75
commit
3104726b69
3 changed files with 42 additions and 0 deletions
7
.env
Normal file
7
.env
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
# Deploy config (NOT secrets) — committed on purpose. See .env.example.
|
||||
# Secrets go via Forgejo → Settings → Actions → Secrets + RUNTIME_KEYS, never here.
|
||||
|
||||
# nip.io test domain: auto-resolves to the platform IP (154.83.149.72), no DNS setup.
|
||||
DOMAIN=e0940758-deploycheck.154.83.149.72.nip.io
|
||||
|
||||
# DEPLOY auto-detects to "static" (no Dockerfile in root); BUILD_DIR defaults to dist.
|
||||
27
index.html
Normal file
27
index.html
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<title>Deploy pipeline OK</title>
|
||||
<style>
|
||||
:root { color-scheme: dark; }
|
||||
body { margin:0; min-height:100vh; display:grid; place-items:center;
|
||||
font-family: ui-sans-serif, system-ui, sans-serif; background:#0b0d12; color:#e8eaf0; }
|
||||
.card { text-align:center; padding:40px 48px; border:1px solid #232838;
|
||||
border-radius:16px; background:#12151d; box-shadow:0 12px 40px rgba(0,0,0,.45); }
|
||||
.dot { display:inline-block; width:10px; height:10px; border-radius:50%;
|
||||
background:#3fd17a; box-shadow:0 0 12px #3fd17a; margin-right:8px; }
|
||||
h1 { font-size:24px; margin:0 0 8px; font-weight:600; }
|
||||
p { margin:4px 0; color:#9aa3b5; font-size:14px; }
|
||||
code { font-family: ui-monospace, monospace; color:#cdd6e2; }
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<main class="card">
|
||||
<h1><span class="dot"></span>Deploy pipeline OK</h1>
|
||||
<p>Served from the platform via <code>Forgejo Actions</code> + Caddy.</p>
|
||||
<p>Static deploy from <code>e0940758/starter</code> — first push test.</p>
|
||||
</main>
|
||||
</body>
|
||||
</html>
|
||||
8
package.json
Normal file
8
package.json
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
{
|
||||
"name": "starter-deploy-check",
|
||||
"private": true,
|
||||
"version": "0.0.0",
|
||||
"scripts": {
|
||||
"build": "mkdir -p dist && cp index.html dist/index.html"
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue