add image tag selection to admin ui
Container image / image (push) Failing after 50s

This commit is contained in:
legop3
2026-10-04 13:29:46 -04:00
parent d36ea4f672
commit fde2fca0a0
7 changed files with 116 additions and 26 deletions
@@ -88,14 +88,14 @@ io.on('connection', (socket) => {
.catch((error) => cb({ error: error.message, code: error.code || null }));
});
socket.on('server:updateApplication', (_payload = {}, cb = () => {}) => {
socket.on('server:updateApplication', (payload = {}, cb = () => {}) => {
Promise.resolve()
.then(() => requireRecentPassword(socket))
.then(() => lifecycleClient.updateApplication())
.then(() => lifecycleClient.updateApplication(payload?.tag))
.then((lifecycle) => {
// Wait for controller acceptance so rejected updates do not kick users.
notifyDriversOfRestart(actorFor(socket));
database.recordAuditEvent(actorFor(socket), 'application.update-requested', {});
database.recordAuditEvent(actorFor(socket), 'application.update-requested', { tag: payload?.tag ?? lifecycle.selectedTag });
io.emit('server:restarting', { reason: 'application-update' });
cb({ success: true, lifecycle });
})