Onboard Github to Cloud build

Automating K6 with the google cloud, using google cloud build.

Installing the Cloud Build

To install the Cloud Build app and connect your GitHub repository to your Cloud project:

  1. Open the Triggers page in the Google Cloud Console.
    Open the Triggers page

  2. In the project selector in the top bar, select your Cloud project.

  3. Click Connect repository.

  4. Select GitHub (Cloud Build GitHub App), check the consent checkbox, and click Continue.

  5. Click Install Google Cloud Build.

  6. In the pop-up that appears, select your GitHub username or organization.

  7. Select one of the following options based on your business need:

    • All repositories - enable all current and future GitHub repositories for access via the Cloud Build app.

  8. Click Install to install the Cloud Build app.

  9. In the Select repository page that appears, connect your GitHub repositories to your Cloud project as follows:
    a. Confirm the correct GitHub account has been selected. The GitHub account must have admin permissions on the GitHub repos
    itories you wish to connect.
    b. Select the checkbox next to each target repository.
    c. Click Connect repository.

  10. You are now connected one or more GitHub repositories to your Cloud project. You are directed to the Triggers page in Cloud Console. Now you will create triggers so that every commit you make to your repository, this will run a build in the cloud. Refer here to create trigger.