mirror of
https://github.com/ceph/ceph-csi.git
synced 2024-11-17 20:00:23 +00:00
ci: fix docker build issue for retest
fix docker build `cannot normalize nothing` Signed-off-by: Madhu Rajanna <madhupr007@gmail.com>
This commit is contained in:
parent
46c40fe5ad
commit
c4ceadd06a
@ -3,6 +3,8 @@ ARG BASE_IMAGE="golang:1.16"
|
||||
|
||||
FROM ${BASE_IMAGE} as builder
|
||||
|
||||
ARG WORK_DIR
|
||||
|
||||
COPY . /home/src
|
||||
WORKDIR ${WORK_DIR}
|
||||
|
||||
@ -10,6 +12,8 @@ RUN go build -mod=vendor -o retest ./main.go
|
||||
|
||||
FROM scratch
|
||||
|
||||
ARG WORK_DIR
|
||||
|
||||
COPY --from=builder ${WORK_DIR}/retest /usr/local/bin/retest
|
||||
|
||||
ENTRYPOINT [ "/usr/local/bin/retest" ]
|
||||
|
Loading…
Reference in New Issue
Block a user