Enhance deployment workflow by saving Docker image as a tarball and uploading it as an artifact. Update AdminPage to provide user feedback for unsupported Docker export functionality.
Some checks failed
Deploy / build-and-deploy (push) Failing after 0s

This commit is contained in:
2025-06-20 17:26:07 +02:00
parent 96ee4003d6
commit f4ef989d3a
2 changed files with 33 additions and 4 deletions

View File

@@ -584,11 +584,31 @@ export default function AdminPage() {
</div>
)}
<button
onClick={handleExportTarball}
onClick={() => {
if (isDocker) {
// Custom popup for Docker support message
const dockerSupportPopup = document.createElement('div');
dockerSupportPopup.innerHTML = 'Exporting from Docker is not supported yet.';
dockerSupportPopup.style.position = 'fixed';
dockerSupportPopup.style.top = '50%';
dockerSupportPopup.style.left = '50%';
dockerSupportPopup.style.transform = 'translate(-50%, -50%)';
dockerSupportPopup.style.backgroundColor = 'white';
dockerSupportPopup.style.padding = '20px';
dockerSupportPopup.style.borderRadius = '5px';
dockerSupportPopup.style.boxShadow = '0 4px 8px rgba(0, 0, 0, 0.2)';
dockerSupportPopup.style.zIndex = '1000';
document.body.appendChild(dockerSupportPopup);
setTimeout(() => {
document.body.removeChild(dockerSupportPopup);
}, 3000);
} else {
handleExportTarball();
}
}}
className="px-4 py-2 bg-green-600 text-white rounded hover:bg-green-700"
title="Export the entire root folder as a tarball"
>
Export Root as Tarball
Export Posts
</button>
</div>
</div>