Node.js + Docker + Github Actions + Google Cloud Container Registry Template
A very simple template to get you started with Node.js and Docker and some simple CI/CD with Github Actions and Google Cloud!
Prerequisites
Google Cloud account && project
Getting Started
- Make a new repository with this template
- Go to Settings->Secrets and add GCLOUD_CONTAINER_URL, the complete URL, for example: eu.gcr.io/project-id-here/container-name-here. Then add the base64 encoded json key from your Compute Engine default service account as GCLOUD_SERVICE_KEY
- Change something in the code, commit and push to master
- You should now see that the Github Action builds your container and pushes it to your private Google Cloud Container registry!
- Pull the image from your server and deploy it:)
Contributing
Contributing is more than welcome!
- Fork the repository
- Create a new branch
- Implement/fix whatever you want
- Make sure to use Eslint!
- Open a pull request:)
Planned additions:
Deployment Tests
Authors
- Jonas Scholz - Code42Cate
License
This project is licensed under the MIT License - see the LICENSE file for details