version
This commit is contained in:
@@ -546,12 +546,19 @@ async function startLaunch(data) {
|
||||
stack_name: stackResult.data.name,
|
||||
status: stackResult.data.status,
|
||||
repository: data.repository,
|
||||
branch: data.branch
|
||||
branch: data.branch,
|
||||
deployed_version: dockerComposeResult.latest_tag || dockerComposeResult.commit_hash || 'unknown',
|
||||
deployed_branch: data.branch
|
||||
};
|
||||
console.log('Saving instance data:', instanceData);
|
||||
const saveResult = await saveInstanceData(instanceData);
|
||||
console.log('Save result:', saveResult);
|
||||
await updateStep(10, 'Saving Instance Data', 'Instance data saved successfully');
|
||||
|
||||
// Update step with version information
|
||||
const versionInfo = dockerComposeResult.commit_hash ?
|
||||
`Instance data saved successfully. Version: ${dockerComposeResult.commit_hash.substring(0, 8)}` :
|
||||
'Instance data saved successfully';
|
||||
await updateStep(10, 'Saving Instance Data', versionInfo);
|
||||
} catch (error) {
|
||||
console.error('Error saving instance data:', error);
|
||||
await updateStep(10, 'Saving Instance Data', `Error: ${error.message}`);
|
||||
|
||||
Reference in New Issue
Block a user