google cloud helloworld pipeline

We can easily create a build pipeline using google cloud build. Create a file called cloudbuild.yaml and then paste the following content to it. 





steps:
- name: 'ubuntu'
  script: |
    #!/usr/bin/env bash
    echo "Hello $_USER"
- name: 'ubuntu'
  script: |
    #!/usr/bin/env bash
    echo "Your project ID is $PROJECT_ID"
options:
  automapSubstitutions: true
substitutions:
  _USER: "Google Cloud"


Every step in google build is running a specific docker image, in my case it is ubuntu.

To ask google cloud build start running your code, use the following command:-

 gcloud builds submit --config cloudbuild.yaml .

The output from the command line:-


The output from google cloud build










Comments

Popular posts from this blog

gemini cli getting file not defined error

NodeJS: Error: spawn EINVAL in window for node version 20.20 and 18.20

vllm : Failed to infer device type