Merge branch 'jobatzil/make' of _OKE5H2PQKOUfzFFDuD4FA/default/CODE/gitness (#33)

This commit is contained in:
Johannes Batzill 2023-04-19 18:55:41 +00:00 committed by Harness
commit 3f19c98ff3
2 changed files with 2 additions and 0 deletions

View File

@ -10,6 +10,7 @@ WORKDIR /app
# Access to private repos
ARG GITHUB_ACCESS_TOKEN
RUN git config --global url."https://${GITHUB_ACCESS_TOKEN}:x-oauth-basic@github.com/harness".insteadOf "https://github.com/harness"
RUN git config --global --add safe.directory '/app'
RUN go env -w GOPRIVATE=github.com/harness/*
# Get dependancies - will also be cached if we won't change mod/sum

View File

@ -10,6 +10,7 @@ WORKDIR /app
# Access to private repos
ARG GITHUB_ACCESS_TOKEN
RUN git config --global url."https://${GITHUB_ACCESS_TOKEN}:x-oauth-basic@github.com/harness".insteadOf "https://github.com/harness"
RUN git config --global --add safe.directory '/app'
RUN go env -w GOPRIVATE=github.com/harness/*
# Get dependancies - will also be cached if we won't change mod/sum