An example of a nodejs project automated to be deployed to gcp using helm with github actions ;)
Based on
To give it a try:
On Local Environment:
- Build images
docker-compose build
- Start container:
docker-compose up
- Check all has gone well visiting http:localhost:3000/api/status and visualizing:
{"response":"All seems going well :)"}
On Production:
- Rename folder
workflows_disabled
toworkflows
inside.github
folder - Rename all code from
helm
folder inside<>
to your kubernetes instances - Replace code inside
<>
from yourgke.yaml
in the.github/workflows
folder - Create your repository secrets for vars:
GKE_SA_KEY
andGKE_PROJECT
- Deploy to the
main
branch - Once the actions have finished check the deployment has gone OK going to your http:externalServiceIp/api/status or using
kubectl get pods
command
Finally: