Description of problem
Deployment of docker image to ECS infrastructure fails, producing the following output:
bin/ecs-deploy.sh: line 144: [: ==: unary operator expected
bin/ecs-deploy.sh: line 148: [: !=: unary operator expected
bin/ecs-deploy.sh: line 152: [: !=: unary operator expected
Using image name: 845828040396.dkr.ecr.us-west-2.amazonaws.com/staging/2019-sandbox:latest
bin/ecs-deploy.sh: line 275: [: !=: unary operator expected
bin/ecs-deploy.sh: line 293: TASK_DEFINITION_ARN: unbound variable
Script failed with status 1
failed to deploy
This is the result of the execution of following line:
https://github.com/hackoregon/deploy-scripts/blob/5165d85c8a80a1a67d666f9255bc1a56db311896/bin/ecs-deploy.sh#L144
From the log of the deployment here:
https://travis-ci.org/hackoregon/2019-sandbox-backend/jobs/554900654
Steps to Reproduce the Problem
- Clone the following existing repo: https://github.com/hackoregon/2019-sandbox-backend/tree/travis
- Run the following command to fetch the deployment scripts:
- Run the following command to start a build:
$ git tag 1.x && git push --tags
Where x is the next version of release that is listed here: https://github.com/hackoregon/2019-sandbox-backend/releases. e.g. If the latest release listed is 1.52, use x = 1.53
Expected Behavior
ECS deploy and travis build succeeds
Actual Behavior
ECS deploy and travis build fails with the above-listed output
Logs/Screenshots
See above
Related Code
See above
Any idea of problem? What to do to fix?
Probably has to do with the SSM parameters needing to be set.
Description of problem
Deployment of docker image to ECS infrastructure fails, producing the following output:
This is the result of the execution of following line:
https://github.com/hackoregon/deploy-scripts/blob/5165d85c8a80a1a67d666f9255bc1a56db311896/bin/ecs-deploy.sh#L144
From the log of the deployment here:
https://travis-ci.org/hackoregon/2019-sandbox-backend/jobs/554900654
Steps to Reproduce the Problem
Where x is the next version of release that is listed here: https://github.com/hackoregon/2019-sandbox-backend/releases. e.g. If the latest release listed is 1.52, use x = 1.53
Expected Behavior
ECS deploy and travis build succeeds
Actual Behavior
ECS deploy and travis build fails with the above-listed output
Logs/Screenshots
See above
Related Code
See above
Any idea of problem? What to do to fix?
Probably has to do with the SSM parameters needing to be set.