Skip to content

Commit

Permalink
revert to working build and add check
Browse files Browse the repository at this point in the history
  • Loading branch information
bradens committed Sep 29, 2022
1 parent bfe35b5 commit bdf5165
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 16 deletions.
4 changes: 2 additions & 2 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -556,10 +556,10 @@ async function run() {
throw new Error(`Service is ${serviceResponse.status}`);
}

if (!serviceResponse.deploymentController) {
if (serviceResponse.deploymentController.type === "ECS") {
// Service uses the 'ECS' deployment controller, so we can call UpdateService
await updateEcsService(ecs, clusterName, service, taskDefArn, waitForService, waitForMinutes, forceNewDeployment);
} else if (serviceResponse.deploymentController.type == 'CODE_DEPLOY') {
} else if (serviceResponse.deploymentController.type === 'CODE_DEPLOY') {
// Service uses CodeDeploy, so we should start a CodeDeploy deployment
await createCodeDeployDeployment(codedeploy, clusterName, service, taskDefArn, waitForService, waitForMinutes);
} else {
Expand Down
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -308,10 +308,10 @@ async function run() {
throw new Error(`Service is ${serviceResponse.status}`);
}

if (!serviceResponse.deploymentController) {
if (serviceResponse.deploymentController.type === "ECS") {
// Service uses the 'ECS' deployment controller, so we can call UpdateService
await updateEcsService(ecs, clusterName, service, taskDefArn, waitForService, waitForMinutes, forceNewDeployment);
} else if (serviceResponse.deploymentController.type == 'CODE_DEPLOY') {
} else if (serviceResponse.deploymentController.type === 'CODE_DEPLOY') {
// Service uses CodeDeploy, so we should start a CodeDeploy deployment
await createCodeDeployDeployment(codedeploy, clusterName, service, taskDefArn, waitForService, waitForMinutes);
} else {
Expand Down
24 changes: 12 additions & 12 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit bdf5165

Please sign in to comment.