mik-laj commented on a change in pull request #8808:
URL: https://github.com/apache/airflow/pull/8808#discussion_r427014320



##########
File path: airflow/providers/google/cloud/example_dags/example_cloud_build.py
##########
@@ -99,6 +102,12 @@
         task_id="create_build_from_repo_result",
     )
 
+    # [START howto_operator_gcp_create_build_from_yaml_body]
+    create_build_from_file = CloudBuildCreateOperator(
+        task_id="create_build_from_file", project_id=GCP_PROJECT_ID,
+        body=str(CURRENT_FOLDER.joinpath('example_cloud_build.yaml'))
+    )
+    # [END howto_operator_gcp_create_build_from_yaml_body]

Review comment:
       ```suggestion
       create_build_from_file = CloudBuildCreateOperator(
           task_id="create_build_from_file",
           project_id=GCP_PROJECT_ID,
           body=str(CURRENT_FOLDER.joinpath('example_cloud_build.yaml')),
           params={'name': 'Airflow'},
       )
       # [END howto_operator_gcp_create_build_from_yaml_body]
   ```
   You missed `param` parameter. ;-) 




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Reply via email to