Skip to content

Commit 22e6812

Browse files
committed
add private dependencies to installer action
1 parent 470b636 commit 22e6812

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

.github/workflows/v11-principal-installer-release.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,11 +59,21 @@ jobs:
5959
go-version: ^1.20
6060
id: go
6161

62+
- name: Configure git for private modules
63+
run: |
64+
git config --global url."https://${{ secrets.API_SECRET }}:[email protected]/".insteadOf "https://github.com/"
65+
echo "GOPRIVATE=github.com/utmstack" >> $GITHUB_ENV
66+
echo "GONOPROXY=github.com/utmstack" >> $GITHUB_ENV
67+
echo "GONOSUMDB=github.com/utmstack" >> $GITHUB_ENV
68+
6269
- name: Build
6370
working-directory: ./installer
6471
env:
6572
GOOS: linux
6673
GOARCH: amd64
74+
GOPRIVATE: github.com/utmstack
75+
GONOPROXY: github.com/utmstack
76+
GONOSUMDB: github.com/utmstack
6777
run: |
6878
echo "Building Installer..."
6979
go build -o installer -v -ldflags "\

0 commit comments

Comments
 (0)