Create Github triggers in cloud

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

Creating GitHub triggers

To create GitHub App triggers:

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

  2. Select your project from the project selector drop-down menu at the top of the page.

  3. Click Open.

  4. Click Create trigger.

  5. Enter the following trigger settings:

    • Name: Enter a name for your trigger.

    • Event: Select the repository event to invoke your trigger.

      • Push to a branch: Set your trigger to start a build on commits to a particular branch.

    • Source: Select the repository and the corresponding branch or tag to watch for events.

    • Build configuration: Select the build config file (located in the GitHub repository connected to your Cloud project) to use for your build.

      • To use a Dockerfile for your build configuration, you'll need to specify the Dockerfile directory and a name for the resulting image. When you've provided the Dockerfile and image name, you'll see a preview of the docker build command that your build will execute.

      • Click Create to save your build trigger.