Skip to content

Commit

Permalink
feat: Update third party clodubuild.proto library to include git_source
Browse files Browse the repository at this point in the history
Committer: @monicaliu
PiperOrigin-RevId: 524851242
  • Loading branch information
Google APIs authored and Copybara-Service committed Apr 17, 2023
1 parent 52180f8 commit 5333983
Showing 1 changed file with 30 additions and 1 deletion.
31 changes: 30 additions & 1 deletion google/devtools/cloudbuild/v1/cloudbuild.proto
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2021 Google LLC
// Copyright 2023 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -412,6 +412,32 @@ message StorageSource {
int64 generation = 3;
}

// Location of the source in any accessible Git repository.
message GitSource {
// Location of the Git repo to build.
//
// This will be used as a `git remote`, see
// https://git-scm.com/docs/git-remote.
string url = 1;

// Directory, relative to the source root, in which to run the build.
//
// This must be a relative path. If a step's `dir` is specified and is an
// absolute path, this value is ignored for that step's execution.
string dir = 5;

// The revision to fetch from the Git repository such as a branch, a tag, a
// commit SHA, or any Git ref.
//
// Cloud Build uses `git fetch` to fetch the revision from the Git
// repository; therefore make sure that the string you provide for `revision`
// is parsable by the command. For information on string values accepted by
// `git fetch`, see
// https://git-scm.com/docs/gitrevisions#_specifying_revisions. For
// information on `git fetch`, see https://git-scm.com/docs/git-fetch.
string revision = 6;
}

// Location of the source in a Google Cloud Source Repository.
message RepoSource {
// ID of the project that owns the Cloud Source Repository. If omitted, the
Expand Down Expand Up @@ -485,6 +511,9 @@ message Source {
// Repository.
RepoSource repo_source = 3;

// If provided, get the source from this Git repository.
GitSource git_source = 5;

// If provided, get the source from this manifest in Google Cloud Storage.
// This feature is in Preview; see description
// [here](https://github.com/GoogleCloudPlatform/cloud-builders/tree/master/gcs-fetcher).
Expand Down

0 comments on commit 5333983

Please sign in to comment.