0
Fork 0
mirror of https://github.com/project-zot/zot.git synced 2025-01-13 22:50:38 -05:00

ci/cd: fix image upload pipeline

Signed-off-by: Ramkumar Chinchani <rchincha@cisco.com>
This commit is contained in:
Ramkumar Chinchani 2022-02-10 21:38:37 +00:00 committed by Ramkumar Chinchani
parent 0ec39c0313
commit 36ce0f8bb0
4 changed files with 8 additions and 0 deletions

View file

@ -26,6 +26,8 @@ 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 scratch AS final FROM scratch AS final
ARG OS
ARG ARCH
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
COPY --from=builder /go/src/github.com/project-zot/zot/bin/zot-$OS-$ARCH /usr/bin/zot COPY --from=builder /go/src/github.com/project-zot/zot/bin/zot-$OS-$ARCH /usr/bin/zot
COPY --from=builder /go/src/github.com/project-zot/zot/config.json /etc/zot/config.json COPY --from=builder /go/src/github.com/project-zot/zot/config.json /etc/zot/config.json

View file

@ -26,6 +26,8 @@ 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 scratch AS final FROM scratch AS final
ARG OS
ARG ARCH
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
COPY --from=builder /go/src/github.com/project-zot/zot/bin/zot-$OS-$ARCH-minimal /usr/bin/zot COPY --from=builder /go/src/github.com/project-zot/zot/bin/zot-$OS-$ARCH-minimal /usr/bin/zot
COPY --from=builder /go/src/github.com/project-zot/zot/config.json /etc/zot/config.json COPY --from=builder /go/src/github.com/project-zot/zot/config.json /etc/zot/config.json

View file

@ -14,5 +14,7 @@ RUN make COMMIT=$COMMIT OS=$OS ARCH=$ARCH 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 scratch AS final FROM scratch AS final
ARG OS
ARG ARCH
COPY --from=builder /go/src/github.com/project-zot/zot/bin/zb-$OS-$ARCH /usr/bin/zb COPY --from=builder /go/src/github.com/project-zot/zot/bin/zb-$OS-$ARCH /usr/bin/zb
ENTRYPOINT ["/usr/bin/zb"] ENTRYPOINT ["/usr/bin/zb"]

View file

@ -27,6 +27,8 @@ 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 scratch AS final FROM scratch AS final
ARG OS
ARG ARCH
COPY --from=builder /go/src/github.com/project-zot/zot/bin/zxp-$OS-$ARCH /zxp COPY --from=builder /go/src/github.com/project-zot/zot/bin/zxp-$OS-$ARCH /zxp
COPY --from=builder /go/src/github.com/project-zot/zot/config.json /etc/zxp/config.json COPY --from=builder /go/src/github.com/project-zot/zot/config.json /etc/zxp/config.json
ENTRYPOINT ["/zxp"] ENTRYPOINT ["/zxp"]