-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Resolves #52. `make rekres` also updated some of the image tags. Signed-off-by: Dennis Marttinen <[email protected]> Signed-off-by: Noel Georgi <[email protected]>
- Loading branch information
Showing
5 changed files
with
62 additions
and
8 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
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 |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
|
||
# THIS FILE WAS AUTOMATICALLY GENERATED, PLEASE DO NOT EDIT. | ||
# | ||
# Generated on 2024-01-12T12:34:10Z by kres latest. | ||
# Generated on 2024-01-22T17:51:41Z by kres latest. | ||
|
||
ARG TOOLCHAIN | ||
|
||
|
@@ -14,9 +14,9 @@ FROM ghcr.io/siderolabs/ca-certificates:v1.6.0 AS image-ca-certificates | |
FROM ghcr.io/siderolabs/fhs:v1.6.0 AS image-fhs | ||
|
||
# runs markdownlint | ||
FROM docker.io/node:21.4.0-alpine3.18 AS lint-markdown | ||
FROM docker.io/node:21.5.0-alpine3.19 AS lint-markdown | ||
WORKDIR /src | ||
RUN npm i -g markdownlint-cli@0.37.0 | ||
RUN npm i -g markdownlint-cli@0.38.0 | ||
RUN npm i [email protected] | ||
COPY .markdownlint.json . | ||
COPY ./README.md ./README.md | ||
|
@@ -70,7 +70,15 @@ COPY --from=generate / / | |
WORKDIR /src/cmd/discovery-service | ||
ARG GO_BUILDFLAGS | ||
ARG GO_LDFLAGS | ||
RUN --mount=type=cache,target=/root/.cache/go-build --mount=type=cache,target=/go/pkg go build ${GO_BUILDFLAGS} -ldflags "${GO_LDFLAGS}" -o /discovery-service-linux-amd64 | ||
RUN --mount=type=cache,target=/root/.cache/go-build --mount=type=cache,target=/go/pkg GOARCH=amd64 GOOS=linux go build ${GO_BUILDFLAGS} -ldflags "${GO_LDFLAGS}" -o /discovery-service-linux-amd64 | ||
|
||
# builds discovery-service-linux-arm64 | ||
FROM base AS discovery-service-linux-arm64-build | ||
COPY --from=generate / / | ||
WORKDIR /src/cmd/discovery-service | ||
ARG GO_BUILDFLAGS | ||
ARG GO_LDFLAGS | ||
RUN --mount=type=cache,target=/root/.cache/go-build --mount=type=cache,target=/go/pkg GOARCH=arm64 GOOS=linux go build ${GO_BUILDFLAGS} -ldflags "${GO_LDFLAGS}" -o /discovery-service-linux-arm64 | ||
|
||
# runs gofumpt | ||
FROM base AS lint-gofumpt | ||
|
@@ -107,13 +115,17 @@ RUN --mount=type=cache,target=/root/.cache/go-build --mount=type=cache,target=/g | |
FROM scratch AS discovery-service-linux-amd64 | ||
COPY --from=discovery-service-linux-amd64-build /discovery-service-linux-amd64 /discovery-service-linux-amd64 | ||
|
||
FROM scratch AS discovery-service-linux-arm64 | ||
COPY --from=discovery-service-linux-arm64-build /discovery-service-linux-arm64 /discovery-service-linux-arm64 | ||
|
||
FROM scratch AS unit-tests | ||
COPY --from=unit-tests-run /src/coverage.txt /coverage-unit-tests.txt | ||
|
||
FROM discovery-service-linux-${TARGETARCH} AS discovery-service | ||
|
||
FROM scratch AS discovery-service-all | ||
COPY --from=discovery-service-linux-amd64 / / | ||
COPY --from=discovery-service-linux-arm64 / / | ||
|
||
FROM scratch AS image-discovery-service | ||
ARG TARGETARCH | ||
|
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