Create Github triggers in cloud
Automating K6 with the google cloud, using google cloud build.
Creating GitHub triggers
To create GitHub App triggers:
Open the Triggers page in the Google Cloud Console.
Open the Triggers pageSelect your project from the project selector drop-down menu at the top of the page.
Click Open.
Click Create trigger.
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.
Repository: From the list of available repositories, select the desired repository. To connect a new repository, see Connecting additional repositories.
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.