diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 793f7f84..3320e684 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -41,20 +41,35 @@ jobs: run: | # Define containers.json with desired settings echo '{ - "fp-core": { + "filplus-core": { "image": "public.ecr.aws/b3c4u5n1/filecoin-core-api:${{ github.ref_name }}", "ports": { "8080": "HTTP" }, - "environment": { - - } + "environment": {} } }' > containers.json + # Define public-endpoint.json + echo '{ + "containerName": "filplus-core", + "containerPort": 8080, + "healthCheck": { + "healthyThreshold": 3, + "unhealthyThreshold": 3, + "timeoutSeconds": 3, + "intervalSeconds": 5, + "path": "/health", + "successCodes": "200" + } + }' > public-endpoint.json + # Deploy to Lightsail Container Service aws lightsail create-container-service-deployment \ --service-name fp-core \ --region us-east-2 \ - --containers file://containers.json + --containers file://containers.json \ + --public-endpoint file://public-endpoint.json + + \ No newline at end of file