forked from vitessio/vitess
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
slack-15.0
: refactor private go dep config from #367
Signed-off-by: Tim Vaillancourt <[email protected]>
- Loading branch information
1 parent
1aed880
commit 6581bf5
Showing
6 changed files
with
10 additions
and
20 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,16 +16,13 @@ ARG BUILD_GIT_BRANCH | |
ARG BUILD_GIT_REV | ||
|
||
# Allows private repo go dependencies | ||
ARG GOPRIVATE | ||
ARG GH_ACCESS_TOKEN | ||
|
||
# Re-copy sources from working tree | ||
USER root | ||
COPY . /vt/src/vitess.io/vitess | ||
|
||
# Allow checkout of github.com/slackhq/vitess-addons (private repo) | ||
ENV GOPRIVATE=github.com/slackhq/vitess-addons | ||
RUN git config --global url.https://[email protected]/.insteadOf https://github.com/ | ||
|
||
# Build Vitess | ||
RUN make build | ||
|
||
|
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 |
---|---|---|
|
@@ -16,16 +16,13 @@ ARG BUILD_GIT_BRANCH | |
ARG BUILD_GIT_REV | ||
|
||
# Allows private repo go dependencies | ||
ARG GOPRIVATE | ||
ARG GH_ACCESS_TOKEN | ||
|
||
# Re-copy sources from working tree | ||
USER root | ||
COPY . /vt/src/vitess.io/vitess | ||
|
||
# Allow checkout of github.com/slackhq/vitess-addons (private repo) | ||
ENV GOPRIVATE=github.com/slackhq/vitess-addons | ||
RUN git config --global url.https://[email protected]/.insteadOf https://github.com/ | ||
|
||
# Build Vitess | ||
RUN make build | ||
|
||
|
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 |
---|---|---|
|
@@ -16,16 +16,13 @@ ARG BUILD_GIT_BRANCH | |
ARG BUILD_GIT_REV | ||
|
||
# Allows private repo go dependencies | ||
ARG GOPRIVATE | ||
ARG GH_ACCESS_TOKEN | ||
|
||
# Re-copy sources from working tree | ||
USER root | ||
COPY . /vt/src/vitess.io/vitess | ||
|
||
# Allow checkout of github.com/slackhq/vitess-addons (private repo) | ||
ENV GOPRIVATE=github.com/slackhq/vitess-addons | ||
RUN git config --global url.https://[email protected]/.insteadOf https://github.com/ | ||
|
||
# Build Vitess | ||
RUN make build | ||
|
||
|
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 |
---|---|---|
|
@@ -30,16 +30,13 @@ ARG BUILD_GIT_BRANCH | |
ARG BUILD_GIT_REV | ||
|
||
# Allows private repo go dependencies | ||
ARG GOPRIVATE | ||
ARG GH_ACCESS_TOKEN | ||
|
||
# Re-copy sources from working tree | ||
USER root | ||
COPY . /vt/src/vitess.io/vitess | ||
|
||
# Allow checkout of github.com/slackhq/vitess-addons (private repo) | ||
ENV GOPRIVATE=github.com/slackhq/vitess-addons | ||
RUN git config --global url.https://[email protected]/.insteadOf https://github.com/ | ||
|
||
# Build Vitess | ||
RUN make build | ||
|
||
|
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 |
---|---|---|
|
@@ -30,16 +30,13 @@ ARG BUILD_GIT_BRANCH | |
ARG BUILD_GIT_REV | ||
|
||
# Allows private repo go dependencies | ||
ARG GOPRIVATE | ||
ARG GH_ACCESS_TOKEN | ||
|
||
# Re-copy sources from working tree | ||
USER root | ||
COPY . /vt/src/vitess.io/vitess | ||
|
||
# Allow checkout of github.com/slackhq/vitess-addons (private repo) | ||
ENV GOPRIVATE=github.com/slackhq/vitess-addons | ||
RUN git config --global url.https://[email protected]/.insteadOf https://github.com/ | ||
|
||
# Fix permissions | ||
RUN chown -R vitess:vitess /vt | ||
USER vitess | ||
|