-
-
Notifications
You must be signed in to change notification settings - Fork 54
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
an attempt to speed up github action
- Loading branch information
yusing
committed
Sep 28, 2024
1 parent
91e7f48
commit fc6a6aa
Showing
8 changed files
with
109 additions
and
7 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 |
---|---|---|
|
@@ -25,6 +25,7 @@ RUN --mount=type=cache,target="/go/pkg/mod" \ | |
FROM scratch | ||
|
||
LABEL maintainer="[email protected]" | ||
LABEL proxy.exclude=1 | ||
|
||
# copy timezone data | ||
COPY --from=builder /usr/share/zoneinfo /usr/share/zoneinfo | ||
|
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 |
---|---|---|
@@ -0,0 +1,22 @@ | ||
FROM gcr.io/distroless/static-debian12:latest AS resources | ||
|
||
LABEL maintainer="[email protected]" | ||
LABEL proxy.exclude=1 | ||
|
||
ARG GOPROXY_BIN=${OUTPUT} | ||
|
||
# copy schema directory | ||
COPY schema /app/schema | ||
|
||
# copy binary | ||
COPY ${GOPROXY_BIN} /app/go-proxy | ||
|
||
ENV DOCKER_HOST=unix:///var/run/docker.sock | ||
|
||
EXPOSE 80 | ||
EXPOSE 8888 | ||
EXPOSE 443 | ||
|
||
WORKDIR /app | ||
|
||
CMD ["/app/go-proxy"] |
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