-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
134 additions
and
32 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 |
---|---|---|
@@ -1,14 +1,11 @@ | ||
# image-name: ghcr.io/dena/unity-meta-check/unity-meta-check-gh-action | ||
FROM golang:1.19-buster as builder | ||
WORKDIR /go/src/unity-meta-check | ||
COPY . . | ||
RUN make out/gh-action-linux-amd64 && mv ./out/gh-action-linux-amd64 ./out/gh-action | ||
FROM ghcr.io/dena/unity-meta-check/unity-meta-check-builder:latest as builder | ||
|
||
FROM debian:buster-slim | ||
FROM debian:bookworm-slim | ||
RUN apt-get update \ | ||
&& apt-get install --yes --no-install-recommends git ca-certificates \ | ||
&& apt-get clean \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
COPY --from=builder /go/src/unity-meta-check/out/* /usr/bin/ | ||
COPY --from=builder /go/src/unity-meta-check/out/gh-action /usr/bin/ | ||
ENTRYPOINT ["gh-action"] | ||
CMD ["-help"] |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# image-name: ghcr.io/dena/unity-meta-check/unity-meta-check-builder | ||
FROM golang:1.22.2-bookworm as builder | ||
ARG TARGETARCH | ||
WORKDIR /go/src/unity-meta-check | ||
COPY . . | ||
RUN make -j$(nproc) out/unity-meta-check-linux-${TARGETARCH} \ | ||
out/unity-meta-check-junit-linux-${TARGETARCH} \ | ||
out/unity-meta-check-github-pr-comment-linux-${TARGETARCH} \ | ||
out/unity-meta-autofix-linux-${TARGETARCH} \ | ||
out/gh-action-linux-${TARGETARCH} && \ | ||
mv ./out/unity-meta-check-linux-${TARGETARCH} ./out/unity-meta-check && \ | ||
mv ./out/unity-meta-check-junit-linux-${TARGETARCH} ./out/unity-meta-check-junit && \ | ||
mv ./out/unity-meta-check-github-pr-comment-linux-${TARGETARCH} ./out/unity-meta-check-github-pr-comment && \ | ||
mv ./out/unity-meta-autofix-linux-${TARGETARCH} ./out/unity-meta-autofix && \ | ||
mv ./out/gh-action-linux-${TARGETARCH} ./out/gh-action |
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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
module github.com/DeNA/unity-meta-check | ||
|
||
go 1.18 | ||
go 1.22.2 | ||
|
||
require ( | ||
github.com/google/go-cmp v0.5.5 | ||
|
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