Creating a Google Function with Gitlab integration in 10 minutes!

  1. Let’s start creating an initial NodeJS project based on GoogleCloud Docs instructions.
    https://cloud.google.com/functions/docs/first-nodejs
    or clone my Github example project
  2. Let’s create a new project on Google Cloud Platform.
new project screen
deploy to gcloud:image: google/cloud-sdk:latestscript:- gcloud auth activate-service-account — key-file=./gcloud-service-key.json- gcloud config set project PROJECT-GCP-NAME- gcloud functions deploy FUNCTION-NAME — runtime nodejs8 — trigger-http — allow-unauthenticated 

--

--

--

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Route Planning for Garbage collection with IoT

Reduce Cost and Increase Productivity with Value Added IT Services from buzinessware — {link} -

CSS Selectors — What you need to know

CSS Selectors, the ultimate guide with examples

SMTP 250 — Requested action taken and completed

How to quickly start programming

Reduce Cost and Increase Productivity with Value Added IT Services from buzinessware — {link} -

Reduce Cost and Increase Productivity with Value Added IT Services from buzinessware — {link} -

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Massato Takaki

Massato Takaki

More from Medium

[CI/CD] Github Deploy to Cloud Run

Google Cloud Platform for Beginners

Best dev tools in GCP: Cloud Trace, Debugger, Logging

New Google Cloud Platform cert for database engineers