fix error

This commit is contained in:
Jay 2019-06-18 13:51:27 +08:00
parent 78bd133b3b
commit c9b256070b
1 changed files with 1 additions and 1 deletions

View File

@ -38,7 +38,7 @@ const ecs = new AWS.ECS({
let image = taskDefinition.taskDefinition.containerDefinitions[0].image
console.log('show image :: ', image)
if (typeof gitHash === 'string' && gitHash.length > 0) {
image = image.split(':')[0] + ':' gitHash
image = image.split(':')[0] + ':' + gitHash
taskDefinition.taskDefinition.containerDefinitions[0].image = image
}
console.log('show new image :: ', image)