-
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.
chore: use common infra provider library
Switch to using the common infra provider library. Signed-off-by: Artem Chernyshev <[email protected]>
- Loading branch information
Showing
28 changed files
with
1,068 additions
and
1,009 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 |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
|
||
# THIS FILE WAS AUTOMATICALLY GENERATED, PLEASE DO NOT EDIT. | ||
# | ||
# Generated on 2024-08-14T14:55:16Z by kres 7be2a05. | ||
# Generated on 2024-09-02T11:17:15Z by kres b5ca957. | ||
|
||
ARG TOOLCHAIN | ||
|
||
|
@@ -11,7 +11,7 @@ FROM ghcr.io/siderolabs/ca-certificates:v1.7.0 AS image-ca-certificates | |
FROM ghcr.io/siderolabs/fhs:v1.7.0 AS image-fhs | ||
|
||
# runs markdownlint | ||
FROM docker.io/oven/bun:1.1.22-alpine AS lint-markdown | ||
FROM docker.io/oven/bun:1.1.26-alpine AS lint-markdown | ||
WORKDIR /src | ||
RUN bun i [email protected] [email protected] | ||
COPY .markdownlint.json . | ||
|
@@ -120,13 +120,13 @@ COPY --from=proto-compile /api/ /api/ | |
FROM scratch AS unit-tests | ||
COPY --from=unit-tests-run /src/coverage.txt /coverage-unit-tests.txt | ||
|
||
# builds talemu-cloud-provider-linux-amd64 | ||
FROM base AS talemu-cloud-provider-linux-amd64-build | ||
# builds talemu-infra-provider-linux-amd64 | ||
FROM base AS talemu-infra-provider-linux-amd64-build | ||
COPY --from=generate / / | ||
WORKDIR /src/cmd/talemu-cloud-provider | ||
WORKDIR /src/cmd/talemu-infra-provider | ||
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 /talemu-cloud-provider-linux-amd64 | ||
RUN --mount=type=cache,target=/root/.cache/go-build --mount=type=cache,target=/go/pkg go build ${GO_BUILDFLAGS} -ldflags "${GO_LDFLAGS}" -o /talemu-infra-provider-linux-amd64 | ||
|
||
# builds talemu-linux-amd64 | ||
FROM base AS talemu-linux-amd64-build | ||
|
@@ -136,29 +136,29 @@ 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 /talemu-linux-amd64 | ||
|
||
FROM scratch AS talemu-cloud-provider-linux-amd64 | ||
COPY --from=talemu-cloud-provider-linux-amd64-build /talemu-cloud-provider-linux-amd64 /talemu-cloud-provider-linux-amd64 | ||
FROM scratch AS talemu-infra-provider-linux-amd64 | ||
COPY --from=talemu-infra-provider-linux-amd64-build /talemu-infra-provider-linux-amd64 /talemu-infra-provider-linux-amd64 | ||
|
||
FROM scratch AS talemu-linux-amd64 | ||
COPY --from=talemu-linux-amd64-build /talemu-linux-amd64 /talemu-linux-amd64 | ||
|
||
FROM talemu-cloud-provider-linux-${TARGETARCH} AS talemu-cloud-provider | ||
FROM talemu-infra-provider-linux-${TARGETARCH} AS talemu-infra-provider | ||
|
||
FROM scratch AS talemu-cloud-provider-all | ||
COPY --from=talemu-cloud-provider-linux-amd64 / / | ||
FROM scratch AS talemu-infra-provider-all | ||
COPY --from=talemu-infra-provider-linux-amd64 / / | ||
|
||
FROM talemu-linux-${TARGETARCH} AS talemu | ||
|
||
FROM scratch AS talemu-all | ||
COPY --from=talemu-linux-amd64 / / | ||
|
||
FROM scratch AS image-talemu-cloud-provider | ||
FROM scratch AS image-talemu-infra-provider | ||
ARG TARGETARCH | ||
COPY --from=talemu-cloud-provider talemu-cloud-provider-linux-${TARGETARCH} /talemu-cloud-provider | ||
COPY --from=talemu-infra-provider talemu-infra-provider-linux-${TARGETARCH} /talemu-infra-provider | ||
COPY --from=image-fhs / / | ||
COPY --from=image-ca-certificates / / | ||
LABEL org.opencontainers.image.source=https://github.com/siderolabs/talemu | ||
ENTRYPOINT ["/talemu-cloud-provider"] | ||
ENTRYPOINT ["/talemu-infra-provider"] | ||
|
||
FROM scratch AS image-talemu | ||
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
Oops, something went wrong.