-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
27 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# `/scripts` | ||
|
||
Scripts to perform various build, install, analysis, etc operations. | ||
|
||
These scripts keep the root level Makefile small and simple. | ||
|
||
Examples: | ||
|
||
* https://github.com/kubernetes/helm/tree/master/scripts | ||
* https://github.com/cockroachdb/cockroach/tree/master/scripts | ||
* https://github.com/hashicorp/terraform/tree/master/scripts |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
#! /bin/sh | ||
|
||
this_dir=$(dirname "$0") | ||
export PREFIX=/usr/local | ||
mkdir -p $PREFIX/go/src/webhookd $PREFIX/go/src/_/builds | ||
cp -r $this_dir/../* $PREFIX/go/src/webhookd | ||
ln -s $PREFIX/go/src/webhookd $PREFIX/go/src/_/builds/webhookd |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#! /bin/bash | ||
|
||
curl --request POST \ | ||
--url $OAUTH_TOKEN_ENDPOINT \ | ||
--header 'content-type: application/x-www-form-urlencoded' \ | ||
--data grant_type=client_credentials \ | ||
--data "client_id=$OAUTH_CLIENT_ID" \ | ||
--data client_secret=$OAUTH_CLIENT_SECRET \ | ||
--data audience=$OAUTH_AUDIENCE |