feat(orbit): add Oort S3 container backup and Forge webhook auto-deploy

This commit is contained in:
2026-10-14 16:20:32 +05:30
parent 11b41bd5cb
commit a3bf00cd64
2 changed files with 153 additions and 0 deletions
+14
View File
@@ -678,6 +678,10 @@ async function loadApplications() {
`}
</div>
<div style="display: flex; gap: 6px;">
<button class="btn-sm-action" title="Backup container snapshot to Oort S3" onclick="backupAppToOort('${app.app_id}')">
<svg width="12" height="12" fill="none" stroke="currentColor" stroke-width="2" viewBox="0 0 24 24"><path d="M21 16V8a2 2 0 00-1-1.73l-7-4a2 2 0 00-2 0l-7 4A2 2 0 003 8v8a2 2 0 001 1.73l7 4a2 2 0 002 0l7-4A2 2 0 0021 16z"/></svg>
Backup S3
</button>
<a href="${app.proxy_url}" target="_blank" class="btn-sm-action" style="color:var(--accent-cyan); border-color:rgba(56,189,248,0.3);">
Open App ↗
</a>
@@ -733,6 +737,16 @@ async function deleteApp(appID, name) {
}
}
async function backupAppToOort(appID) {
toast('Snapshotting container and uploading to Oort S3…');
const res = await api(`/orbit/api/apps/${appID}/backup-to-oort`, { method: 'POST' });
if (res && res.success) {
toast(`✓ ${res.message}`);
} else {
toast((res && res.error) || 'Backup failed', 'error');
}
}
// Modal handling
function openNewAppModal() {
document.getElementById('modal-new-app').classList.add('open');