Google Cloud Run and Cloud Build | Tutorial

แชร์
ฝัง
  • เผยแพร่เมื่อ 19 มิ.ย. 2022
  • Learn how to deploy your applications to Google Cloud Run using Google Cloud Build every time you push to Github.
    Here is the Github repository if you would like to clone it:
    github.com/ScriptBytes/CloudR...

ความคิดเห็น • 15

  • @eder.franco
    @eder.franco ปีที่แล้ว

    Man, thank you for the knowledge you share, it helped me a lot!

    • @scriptbytes
      @scriptbytes  ปีที่แล้ว

      You’re welcome, I’m glad it was useful!

  • @LuisGuzmanJr
    @LuisGuzmanJr ปีที่แล้ว

    Extremely useful tutorial. Thank you.

  • @nirmitsawant151
    @nirmitsawant151 ปีที่แล้ว

    Hey man This really helped! Thanks for this video.

    • @scriptbytes
      @scriptbytes  ปีที่แล้ว

      Thanks! I’m happy it helped!

    • @nirmitsawant151
      @nirmitsawant151 ปีที่แล้ว

      @@scriptbytes Keep up the good work. You earned a subscribe. Also can you create a video on Cloud build with gradle file.

  • @JozsefPallagi
    @JozsefPallagi 4 หลายเดือนก่อน +1

    can you help me that how is it possible to pass cloud build trigger env variables into the application ?

    • @scriptbytes
      @scriptbytes  4 หลายเดือนก่อน +1

      You use Substitution variables in your trigger, and then pass those as env variables into your docker container.
      Here are the docs on substitution variables, how to set them up, and how to pass them as env variables:
      cloud.google.com/build/docs/configuring-builds/substitute-variable-values#using_user-defined_substitutions

  • @lightlysal
    @lightlysal ปีที่แล้ว

    Tried following this tutorial today. For some reason the _GCR_HOSTNAME substitution variable at 7:42 was not there for me when I edited the trigger so I had to add it myself. Writing this down to save anyone from the headache it caused me!

    • @scriptbytes
      @scriptbytes  ปีที่แล้ว

      Ya GCP is now pushing everyone to use Artifact Registry instead of Container Registry, so you probably saw something like _AR_HOSTNAME instead. I'll probably do an updated video on it.

  • @bumenga
    @bumenga ปีที่แล้ว

    Thank you

  • @abd.alharbi
    @abd.alharbi 3 หลายเดือนก่อน

    Thank you for this great content. I got stuck somewhere and was wondering whether you could help. I have secrets in a secrets.json file that are structured as json objects and I read it into the source code as json. How to I structure environment variables in Cloud Run (either in the Environment Variable section in Cloud Run or define the variables in the cloudbuild.yaml) as json? Thanks again for the vid

    • @scriptbytes
      @scriptbytes  3 หลายเดือนก่อน

      I haven't used a json object as an environment variable before, so I'm not sure if there are any issues/limitations with it. But you can definitely use the env variable section in cloud run, or add it to the cloudbuild.yaml file for setting up variables. For the yaml file, check out the gcloud cli docs for adding env variables, there are a couple ways of doing it:
      cloud.google.com/sdk/gcloud/reference/run/deploy#--set-env-vars