Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add script field in cloud build trigger #6701

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions mmv1/products/cloudbuild/api.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -716,6 +716,11 @@ objects:
have completed successfully. If `wait_for` is empty, this build step
will start when all previous build steps in the `Build.Steps` list
have completed successfully.
- !ruby/object:Api::Type::String
name: 'script'
description: |
A shell script to be executed in the step.
When script is provided, the user cannot specify the entrypoint or args.
- !ruby/object:Api::Type::NestedObject
name: 'artifacts'
description: |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,11 @@ resource "google_cloudbuild_trigger" "<%= ctx[:primary_resource_id] %>" {
secret_env = ["MY_SECRET"]
}

step {
name = "ubuntu"
script = "echo hello" # using script field
}

source {
storage_source {
bucket = "mybucket"
Expand Down