Files
testsite/public/index.html
T
rlabadmin 34173ee9d0
Build & Deploy / build (push) Successful in 5s
Build & Deploy / deploy (push) Successful in 19s
Tweak hero copy to make a visible update for pipeline test
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-04-23 15:26:27 +02:00

138 lines
4.6 KiB
HTML

<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1">
<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>
<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">Live deployment demo</p>
<h1>Pushed, built and rolled out &mdash; all from one <code>git push</code>.</h1>
<p class="lede">
Gitea Actions picks up every commit on <code>main</code>, builds a
fresh container image tagged with the commit SHA, pushes it to the
internal registry, then SSHes into the Swarm manager for a
zero-downtime rolling update behind Traefik. You read this line because
the whole pipeline just ran end-to-end.
</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>