Alphanumeric image name for stack
parent
6bcc4e8bd4
commit
8d0b01d5d3
File diff suppressed because one or more lines are too long
|
|
@ -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');
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue