Replace placeholder with a proper multi-section landing page
Build & Deploy / build (push) Successful in 5s
Build & Deploy / deploy (push) Failing after 1s

- public/index.html: semantic HTML5 with header/nav, hero, features grid,
  stack description list, contact, footer
- public/styles.css: responsive layout, custom properties, dark-mode support
- public/favicon.svg

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
rlabadmin
2026-04-23 14:45:08 +02:00
parent b9b5809a76
commit adb0c055c8
3 changed files with 398 additions and 20 deletions
+126 -20
View File
@@ -3,27 +3,133 @@
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1">
<title>testsite</title>
<style>
:root { color-scheme: light dark; }
body {
font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
max-width: 40rem;
margin: 4rem auto;
padding: 0 1.5rem;
line-height: 1.5;
}
code {
background: color-mix(in srgb, currentColor 10%, transparent);
padding: 0.1em 0.35em;
border-radius: 0.25em;
}
.meta { opacity: 0.7; font-size: 0.9rem; }
</style>
<title>testsite — a deployment demo</title>
<meta name="description" content="A small static site deployed with Gitea Actions, Docker Swarm and Traefik.">
<link rel="icon" type="image/svg+xml" href="/favicon.svg">
<link rel="stylesheet" href="/styles.css">
</head>
<body>
<h1>testsite is live</h1>
<p>Served by <code>nginx</code> on port 8080, deployed by Gitea Actions to Docker Swarm.</p>
<p class="meta">Build: <code id="build">dev</code></p>
<header class="site-header">
<div class="container nav">
<a class="logo" href="/">
<span class="logo-mark" aria-hidden="true"></span>
<span>testsite</span>
</a>
<nav aria-label="Primary">
<a href="#features">Features</a>
<a href="#stack">Stack</a>
<a href="#contact">Contact</a>
</nav>
</div>
</header>
<main>
<section class="hero">
<div class="container">
<p class="eyebrow">Deployment demo</p>
<h1>A static site, shipped on every <code>git push</code>.</h1>
<p class="lede">
Gitea Actions builds the container, pushes to the internal registry,
then Swarm does a zero-downtime rolling update behind Traefik.
No manual steps after the first deploy.
</p>
<div class="actions">
<a class="btn btn-primary" href="#stack">See the stack</a>
<a class="btn" href="https://git.dev.serso.org/test/testsite">Source on Gitea</a>
</div>
</div>
</section>
<section id="features" class="section">
<div class="container">
<h2>What this site demonstrates</h2>
<div class="grid-3">
<article class="card">
<h3>Push to deploy</h3>
<p>
Commit to <code>main</code> and a Gitea Actions workflow builds
a fresh image tagged with the commit SHA, pushes it, and tells
Swarm to roll the new version in.
</p>
</article>
<article class="card">
<h3>Zero downtime</h3>
<p>
Two replicas spread across worker nodes. The
<code>start-first</code> update order brings the new container
up before draining the old one &mdash; no dropped requests.
</p>
</article>
<article class="card">
<h3>Automatic TLS</h3>
<p>
Traefik watches Swarm labels, discovers the service on the
<code>traefik-public</code> overlay, and fetches a Let&rsquo;s
Encrypt certificate without any extra config.
</p>
</article>
</div>
</div>
</section>
<section id="stack" class="section section-alt">
<div class="container">
<h2>The stack</h2>
<dl class="stack-list">
<div>
<dt>Source &amp; CI</dt>
<dd>Gitea at <code>git.dev.serso.org</code> with Gitea Actions.</dd>
</div>
<div>
<dt>Build</dt>
<dd><code>nginx:1.27-alpine</code> serving <code>/public</code> on port 8080.</dd>
</div>
<div>
<dt>Registry</dt>
<dd>Gitea&rsquo;s built-in OCI registry &mdash; one login per runner, per node.</dd>
</div>
<div>
<dt>Runtime</dt>
<dd>Docker Swarm, constrained to worker nodes.</dd>
</div>
<div>
<dt>Ingress</dt>
<dd>Traefik on the <code>traefik-public</code> overlay, Let&rsquo;s Encrypt resolver.</dd>
</div>
<div>
<dt>Deploy trigger</dt>
<dd><code>docker service update --image &lt;sha&gt; testwebsite_web</code> over SSH.</dd>
</div>
</dl>
</div>
</section>
<section id="contact" class="section">
<div class="container narrow">
<h2>Contact</h2>
<p>
Questions or want to reuse this template for another app?
Drop a line at
<a href="mailto:robin@serso.be">robin@serso.be</a>.
</p>
</div>
</section>
</main>
<footer class="site-footer">
<div class="container footer-inner">
<p>&copy; <span id="year">2026</span> serso &middot; built with a CI pipeline that is probably overengineered for a static page.</p>
<p class="meta">
Build
<code id="build-sha">dev</code>
&middot;
<a href="/healthz">/healthz</a>
</p>
</div>
</footer>
<script>
document.getElementById('year').textContent = new Date().getFullYear();
</script>
</body>
</html>