Skip to content

Commit

Permalink
ci/cd: fix image upload pipeline
Browse files Browse the repository at this point in the history
Signed-off-by: Ramkumar Chinchani <rchincha@cisco.com>
  • Loading branch information
rchincha committed Feb 11, 2022
1 parent 0ec39c0 commit 36ce0f8
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ RUN echo '{\n\
# Stage 2: Final image with nothing but certs, binary, and default config file
# ---
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 /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
Expand Down
2 changes: 2 additions & 0 deletions Dockerfile-minimal
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ RUN echo '{\n\
# Stage 2: Final image with nothing but certs, binary, and default config file
# ---
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 /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
Expand Down
2 changes: 2 additions & 0 deletions Dockerfile-zb
Original file line number Diff line number Diff line change
Expand Up @@ -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
# ---
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
ENTRYPOINT ["/usr/bin/zb"]
2 changes: 2 additions & 0 deletions Dockerfile-zxp
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ RUN echo '{\n\
# Stage 2: Final image with nothing but binary and default config file
# ---
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/config.json /etc/zxp/config.json
ENTRYPOINT ["/zxp"]
Expand Down

0 comments on commit 36ce0f8

Please sign in to comment.