0
Fork 0
mirror of https://github.com/project-zot/zot.git synced 2024-12-16 21:56:37 -05:00

ci: move distroless to debian12 (#2056)

See:
https://github.com/GoogleContainerTools/distroless/issues/1467

Signed-off-by: Ramkumar Chinchani <rchincha@cisco.com>
This commit is contained in:
Ramkumar Chinchani 2023-11-21 04:54:07 -08:00 committed by GitHub
parent c7bd2a67b4
commit 8b2d4fb7ef
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
10 changed files with 10 additions and 10 deletions

View file

@ -27,7 +27,7 @@ RUN echo '{\n\
# --- # ---
# Stage 2: Final image with nothing but certs, binary, and default config file # Stage 2: Final image with nothing but certs, binary, and default config file
# --- # ---
FROM gcr.io/distroless/base AS final FROM gcr.io/distroless/base-debian12 AS final
ARG TARGETOS ARG TARGETOS
ARG TARGETARCH ARG TARGETARCH
COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt

View file

@ -24,7 +24,7 @@ storage:\n\
# --- # ---
# Stage 2: Final image with nothing but certs, binary, and default config file # Stage 2: Final image with nothing but certs, binary, and default config file
# --- # ---
FROM gcr.io/distroless/base AS final FROM gcr.io/distroless/base-debian12 AS final
ARG TARGETOS ARG TARGETOS
ARG TARGETARCH ARG TARGETARCH
COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt

View file

@ -27,7 +27,7 @@ RUN echo '{\n\
# --- # ---
# Stage 2: Final image with nothing but certs, binary, and default config file # Stage 2: Final image with nothing but certs, binary, and default config file
# --- # ---
FROM gcr.io/distroless/base AS final FROM gcr.io/distroless/base-debian12 AS final
ARG TARGETOS ARG TARGETOS
ARG TARGETARCH ARG TARGETARCH
COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt

View file

@ -15,7 +15,7 @@ RUN make COMMIT=$COMMIT OS=$TARGETOS ARCH=$TARGETARCH clean bench
# --- # ---
# Stage 2: Final image with nothing but certs, binary, and default config file # Stage 2: Final image with nothing but certs, binary, and default config file
# --- # ---
FROM gcr.io/distroless/base AS final FROM gcr.io/distroless/base-debian12 AS final
ARG TARGETOS ARG TARGETOS
ARG TARGETARCH ARG TARGETARCH
COPY --from=builder /go/src/github.com/project-zot/zot/bin/zb-$TARGETOS-$TARGETARCH /usr/bin/zb COPY --from=builder /go/src/github.com/project-zot/zot/bin/zb-$TARGETOS-$TARGETARCH /usr/bin/zb

View file

@ -28,7 +28,7 @@ RUN echo '{\n\
# --- # ---
# Stage 2: Final image with nothing but binary and default config file # Stage 2: Final image with nothing but binary and default config file
# --- # ---
FROM gcr.io/distroless/base AS final FROM gcr.io/distroless/base-debian12 AS final
ARG TARGETOS ARG TARGETOS
ARG TARGETARCH ARG TARGETARCH
COPY --from=builder /go/src/github.com/project-zot/zot/bin/zxp-$TARGETOS-$TARGETARCH /zxp COPY --from=builder /go/src/github.com/project-zot/zot/bin/zxp-$TARGETOS-$TARGETARCH /zxp

View file

@ -46,7 +46,7 @@ build:
arch: ${{ARCH}} arch: ${{ARCH}}
from: from:
type: docker type: docker
url: docker://gcr.io/distroless/base:latest-${{ARCH}} url: docker://gcr.io/distroless/base-debian12:latest-${{ARCH}}
overlay_dirs: overlay_dirs:
- source: ../.build/${{REPO_NAME}}/binary - source: ../.build/${{REPO_NAME}}/binary
dest: /usr/local/bin dest: /usr/local/bin

View file

@ -45,7 +45,7 @@ build:
arch: ${{ARCH}} arch: ${{ARCH}}
from: from:
type: docker type: docker
url: docker://gcr.io/distroless/base:latest-${{ARCH}} url: docker://gcr.io/distroless/base-debian12:latest-${{ARCH}}
overlay_dirs: overlay_dirs:
- source: ../.build/${{REPO_NAME}}/binary - source: ../.build/${{REPO_NAME}}/binary
dest: /usr/local/bin dest: /usr/local/bin

View file

@ -24,7 +24,7 @@ build:
arch: ${{ARCH}} arch: ${{ARCH}}
from: from:
type: docker type: docker
url: docker://gcr.io/distroless/base:latest-${{ARCH}} url: docker://gcr.io/distroless/base-debian12:latest-${{ARCH}}
overlay_dirs: overlay_dirs:
- source: ../.build/${{REPO_NAME}}/binary - source: ../.build/${{REPO_NAME}}/binary
dest: /usr/local/bin dest: /usr/local/bin

View file

@ -44,7 +44,7 @@ build:
arch: ${{ARCH}} arch: ${{ARCH}}
from: from:
type: docker type: docker
url: docker://gcr.io/distroless/base:latest-${{ARCH}} url: docker://gcr.io/distroless/base-debian12:latest-${{ARCH}}
overlay_dirs: overlay_dirs:
- source: ../.build/${{REPO_NAME}}/binary - source: ../.build/${{REPO_NAME}}/binary
dest: /usr/local/bin dest: /usr/local/bin

View file

@ -59,7 +59,7 @@ build:
arch: ${{ARCH}} arch: ${{ARCH}}
from: from:
type: docker type: docker
url: docker://gcr.io/distroless/base:latest-${{ARCH}} url: docker://gcr.io/distroless/base-debian12:latest-${{ARCH}}
overlay_dirs: overlay_dirs:
- source: ../.build/${{REPO_NAME}}/binary - source: ../.build/${{REPO_NAME}}/binary
dest: /usr/local/bin dest: /usr/local/bin