Add deployment improvements and UI enhancements
- Clone specific commit SHA from webhook instead of just branch HEAD - Log webhook payload in deployment logs - Add build/deploy timing to ntfy and Slack notifications - Implement container rollback on deploy failure - Remove old container only after successful deployment - Show relative times in deployment history (hover for full date) - Update port mappings UI with labeled text inputs - Add footer with version info, license, and repo link - Format deploy key comment as upaas_DATE_appname
This commit is contained in:
@@ -8,8 +8,11 @@
|
||||
<title>{{block "title" .}}µPaaS{{end}}</title>
|
||||
<link rel="stylesheet" href="/s/css/tailwind.css">
|
||||
</head>
|
||||
<body class="bg-gray-50 min-h-screen">
|
||||
{{block "content" .}}{{end}}
|
||||
<body class="bg-gray-50 min-h-screen flex flex-col">
|
||||
<div class="flex-grow">
|
||||
{{block "content" .}}{{end}}
|
||||
</div>
|
||||
{{template "footer" .}}
|
||||
<script src="/s/js/app.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
@@ -18,10 +21,10 @@
|
||||
{{define "nav"}}
|
||||
<nav class="app-bar">
|
||||
<div class="max-w-6xl mx-auto flex justify-between items-center">
|
||||
<a href="/" class="text-xl font-medium text-gray-900 hover:text-primary-600 transition-colors">
|
||||
µPaaS
|
||||
</a>
|
||||
<span class="text-sm text-gray-500 ml-2">by <a href="https://sneak.berlin" class="text-primary-600 hover:text-primary-800">@sneak</a></span>
|
||||
<div class="flex items-center gap-3">
|
||||
<a href="/" class="text-xl font-medium text-gray-900 hover:text-primary-600 transition-colors">µPaaS</a>
|
||||
<span class="text-sm text-gray-500">by <a href="https://sneak.berlin" class="text-primary-600 hover:text-primary-800">@sneak</a></span>
|
||||
</div>
|
||||
<div class="flex items-center gap-4">
|
||||
<a href="/apps/new" class="btn-primary">
|
||||
New App
|
||||
@@ -34,6 +37,22 @@
|
||||
</nav>
|
||||
{{end}}
|
||||
|
||||
{{define "footer"}}
|
||||
<footer class="bg-white border-t border-gray-200 shadow-[0_-4px_6px_-1px_rgba(0,0,0,0.1)] mt-8">
|
||||
<div class="max-w-6xl mx-auto px-4 py-4">
|
||||
<div class="text-center text-xs text-gray-500">
|
||||
<span class="font-medium">µPaaS</span>
|
||||
<span class="mx-2">|</span>
|
||||
<span>MIT License</span>
|
||||
<span class="mx-2">|</span>
|
||||
<span>{{if .Version}}{{.Version}}{{else}}dev{{end}}</span>
|
||||
<span class="mx-2">|</span>
|
||||
<a href="https://git.eeqj.de/sneak/upaas" class="text-primary-600 hover:text-primary-800">git.eeqj.de/sneak/upaas</a>
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
||||
{{end}}
|
||||
|
||||
{{define "alert-error"}}
|
||||
{{if .Error}}
|
||||
<div class="alert-error" data-auto-dismiss="8000">
|
||||
|
||||
Reference in New Issue
Block a user