Consider giving this repo a ✨! Thanks!!!
Here's a link to the YouTube video explaining this setup in greater detail:
- You'll need to have gcloud installed.
- Make sure
gcloud
is configured. You can configuregcloud
by runninggcloud init
.
gcloud functions deploy greeter --trigger-http --gen2 --runtime go116 --region us-east1 --entry-point=GreeterGet
Answer
yes
for all the prompts.
You can test the app by running:
curl https://[APP_URL]
- Create a Service Account on GCP with
Admin
privileges and generate acredential.json
file. - Create a secret in your GitHub Repository with the name
GCP_CREDS
and paste the contents in thecredentials.json
file as the value. - Push the contents of this directory including the
.github
folder to your git repo. - Let the magic begin
Simply create a PR on the main branch and wait for the comment to appear.