Skip to content

Commit

Permalink
Add GOPRIVATE
Browse files Browse the repository at this point in the history
Signed-off-by: Arnob kumar saha <[email protected]>
  • Loading branch information
ArnobKumarSaha committed Jun 24, 2024
1 parent 6536430 commit 34ab701
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion git.bash
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
#!/bin/bash

: '
This script takes two ENV GITHUB_USER & GITHUB_TOKEN
You can get a PAT from github -> settings -> developer settings -> Create Personal access token
'

git config --global user.name "Arnob kumar saha"
git config --global user.email [email protected]

Expand All @@ -19,4 +24,10 @@ while true; do
echo "$line" | grep -q "$TEXT" && break
done

bash repo-clone.bash
bash repo-clone.bash


git config --global \
url."https://"$GITHUB_USER":"$GITHUB_TOKEN"@github.com".insteadOf \
"https://github.com"
go env -w GOPRIVATE='github.com/appscode/*,go.appscode.dev/*,kubedb.dev/*,github.com/ak8sdb/*,kubeops.dev/*,go.bytebuilders.dev/*,kubepack.dev/*,kubestash.dev/*,stash.appscode.dev/*'

0 comments on commit 34ab701

Please sign in to comment.