Secrets for GitHub Actions
Set the following repository secrets for deployment:-
EC2_SSH_KEY_PROD
Get the content of your EC2 PEM file: -
HOST_DNS_PROD
-
USERNAME_PROD
-
TARGET_DIR_PROD
Docker Maintenance
Delete all Docker-related data (network, volume, image):Build and Run Inventory Service
To build and start only the inventory-service container:Health Check from API Gateway
Check inventory service health from within the API Gateway container:CI/CD Configuration
The inventory service uses GitHub Actions for continuous integration and deployment. Here’s the complete CI/CD configuration:- Triggers on pushes to master and pull requests
- Uploads necessary files as artifacts
- Deploys to EC2 when changes are pushed to master
- Includes dependency review for pull requests
- Handles sensitive files and permissions appropriately
- Manages Docker containers and networking
EC2_SSH_KEY_PROD
HOST_DNS_PROD
USERNAME_PROD
TARGET_DIR_PROD