Skip to content

Commit

Permalink
added lightsail deployment from public image
Browse files Browse the repository at this point in the history
  • Loading branch information
kokal33 committed Aug 28, 2023
1 parent 75239ff commit 16b5ec6
Showing 1 changed file with 22 additions and 1 deletion.
23 changes: 22 additions & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,25 @@ jobs:
- name: Push Docker image to ECR
run: |
echo "Pushing Docker image to ECR..."
docker push "public.ecr.aws/b3c4u5n1/filecoin-core-api:${{ github.ref_name }}"
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 '{
"fp-core": {
"image": "public.ecr.aws/b3c4u5n1/filecoin-core-api:${{ github.ref_name }}",
"ports": {
"80": "HTTP"
},
"environment": {
}
}
}' > containers.json
# Deploy to Lightsail Container Service
aws lightsail create-container-service-deployment \
--service-name fp-core \
--containers file://containers.json

0 comments on commit 16b5ec6

Please sign in to comment.