-
Notifications
You must be signed in to change notification settings - Fork 671
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Yee Hing Tong <[email protected]>
- Loading branch information
1 parent
de6cd33
commit b469a78
Showing
8 changed files
with
24 additions
and
2,642 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 |
---|---|---|
|
@@ -7,22 +7,11 @@ FROM --platform=${BUILDPLATFORM} golang:1.19.1-bullseye AS flytebuilder | |
ARG TARGETARCH | ||
ENV GOARCH "${TARGETARCH}" | ||
ENV GOOS linux | ||
ENV GOPRIVATE github.com/unionai/* | ||
RUN mkdir -m 0700 ~/.ssh | ||
RUN ssh-keyscan github.com >> ~/.ssh/known_hosts | ||
|
||
|
||
WORKDIR /flyteorg/build | ||
COPY go.mod.main ./go.mod | ||
COPY go.sum.main ./go.sum | ||
RUN go mod download | ||
RUN echo '\ | ||
[url "ssh://[email protected]/"]\n\ | ||
insteadOf = https://github.com/'\ | ||
>> /root/.gitconfig | ||
|
||
COPY go.mod go.sum ./ | ||
RUN --mount=type=ssh go mod download | ||
RUN go mod download | ||
|
||
COPY cmd cmd | ||
COPY --from=flyteconsole /app/ cmd/single/dist | ||
RUN --mount=type=cache,target=/root/.cache/go-build --mount=type=cache,target=/root/go/pkg/mod \ | ||
|
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
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
This file was deleted.
Oops, something went wrong.
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
Oops, something went wrong.