feat: specific git commit deployment

feat: revert to specific image
fix: no system wide docker registries
This commit is contained in:
Andras Bacsai
2022-11-30 15:22:07 +01:00
parent a08bb25bfa
commit 9913e7b70b
20 changed files with 494 additions and 231 deletions

View File

@@ -96,6 +96,18 @@
async function handleDeploySubmit(forceRebuild = false) {
if (!$isDeploymentEnabled) return;
if (application.gitCommitHash && !application.settings.isPublicRepository) {
const sure = await confirm(
`Are you sure you want to deploy a specific commit (${application.gitCommitHash})? This will disable the "Automatic Deployment" feature to prevent accidental overwrites of incoming commits.`
);
if (!sure) {
return;
} else {
await post(`/applications/${id}/settings`, {
autodeploy: false
});
}
}
if (!statusInterval) {
statusInterval = setInterval(async () => {
await getStatus();