Skip to content

Commit

Permalink
fixed spacing
Browse files Browse the repository at this point in the history
  • Loading branch information
kokal33 committed Sep 1, 2023
1 parent bd9daa7 commit 37e5706
Showing 1 changed file with 34 additions and 33 deletions.
67 changes: 34 additions & 33 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,38 +37,39 @@ jobs:
echo "Pushing Docker image to ECR..."
docker push "public.ecr.aws/b3c4u5n1/filecoin-core-api:${{ github.ref_name }}"
- name: Deploy to Lightsail Container Service
run: |
# Define containers.json with desired settings
echo '{
"filplus-core": {
"image": "public.ecr.aws/b3c4u5n1/filecoin-core-api:${{ github.ref_name }}",
"ports": {
"8080": "HTTP"
},
"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 \
--public-endpoint file://public-endpoint.json
- name: Deploy to Lightsail Container Service
run: |
# Define containers.json with desired settings
echo '{
"filplus-core": {
"image": "public.ecr.aws/b3c4u5n1/filecoin-core-api:${{ github.ref_name }}",
"ports": {
"8080": "HTTP"
},
"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 \
--public-endpoint file://public-endpoint.json

0 comments on commit 37e5706

Please sign in to comment.