Skip to main content

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:
To check the logs:

Health Check from API Gateway

Check inventory service health from within the API Gateway container:
Or, if you want to include a Bearer token (not required when calling from the API Gateway container):
Note: The Bearer token is not required when making requests from within the API Gateway container as they are on the same network.

CI/CD Configuration

The inventory service uses GitHub Actions for continuous integration and deployment. Here’s the complete CI/CD configuration:
This CI/CD pipeline:
  1. Triggers on pushes to master and pull requests
  2. Uploads necessary files as artifacts
  3. Deploys to EC2 when changes are pushed to master
  4. Includes dependency review for pull requests
  5. Handles sensitive files and permissions appropriately
  6. Manages Docker containers and networking
The pipeline requires the following GitHub secrets to be configured:
  • EC2_SSH_KEY_PROD
  • HOST_DNS_PROD
  • USERNAME_PROD
  • TARGET_DIR_PROD