Publish your Cloud Run App with GitHub Actions
A very fast way to deploy your application with GitHub
For non-members, please click here to continue reading.
Google recently announced Cloud Run, a new Google Cloud Platform (GCP) feature, to deploy your Docker applications fast and easily. This guide will explain how to build and deploy a simple static application using the new continuous integration/continuous delivery system provided by GitHub: Actions.
To make this project live, we’ll use the following tools:
- Google Cloud Run, to execute our Docker containers
- Google Cloud Container Registry to store our Docker images
- GitHub Actions to manage the continuous deployment
- GitHub to store the source code of our project.
Configure the GCP Project
Service account creation
The first step is to create a service account which will allow us to connect from GitHub actions. To do so, you can click the “Create Service Account” button in the “IAM & Admin/Service Accounts” menu in the GCP interface. Now fill in the “Service Account Name” field with the value “GitHub-actions” and the “Service Account Description” field with the…
