-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
There are private copies of the teleport repo that require the use of deployment keys to perform operations on the code repository (e.g. `git fetch --unshallow`). This patch adds the ability for a GCB build trigger to optionally pass in the location of a secret deployment key, which will be fetched and used if supplied. If no such deployment key is supplied (i.e. in the public teleport repo), the build will have access to neither the location of the deployment key, nor the key itself, and thus cannot leak it during CI. This patch also pulls the unshallow operation into the main build script (as opposed to being a separate build step) so it can use the deployment key to grant access to the remote repo. Most of the new interaction with the repository is via shelling out to the command-line git installed on the buildbox. My original intention was to use go-git to manage the unshallow directly from code, but this was not supported by the library.
- Loading branch information
Showing
13 changed files
with
438 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.