Alphanumeric image name for stack

pull/218/head
Frostebite 2021-01-31 20:43:20 +00:00
parent 6bcc4e8bd4
commit 8d0b01d5d3
2 changed files with 6 additions and 5 deletions

File diff suppressed because one or more lines are too long

View File

@ -84,20 +84,21 @@ class AWS {
await ECS.waitFor('tasksRunning', { await ECS.waitFor('tasksRunning', {
cluster: clusterName, cluster: clusterName,
tasks: [task], tasks: [task.tasks[0].taskArn],
}).promise(); }).promise();
core.info('Build job is running, watching logs'); core.info('Build job is running, watching logs');
// watching logs // watching logs
await this.watch(async () => { await this.watch(async () => {
return (await ECS.describeTasks({ tasks: [task], cluster: clusterName }).promise()).tasks[0] return (
.lastStatus; await ECS.describeTasks({ tasks: [task.tasks[0].taskArn], cluster: clusterName }).promise()
).tasks[0].lastStatus;
}, 'example'); }, 'example');
await ECS.waitFor('tasksStopped', { await ECS.waitFor('tasksStopped', {
cluster: clusterName, cluster: clusterName,
tasks: [task], tasks: [task.tasks[0].taskArn],
}).promise(); }).promise();
core.info('Build job has ended'); core.info('Build job has ended');