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:
parent
c7bd2a67b4
commit
8b2d4fb7ef
10 changed files with 10 additions and 10 deletions
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue