mirror of
https://github.com/ceph/ceph-csi.git
synced 2024-11-09 16:00:22 +00:00
ad36f13e92
this commit make use of 1.18 version of go for building actions/retest code. Signed-off-by: Humble Chirammal <hchiramm@redhat.com>
20 lines
319 B
Docker
20 lines
319 B
Docker
ARG WORK_DIR="/home/src"
|
|
ARG BASE_IMAGE="golang:1.18"
|
|
|
|
FROM ${BASE_IMAGE} as builder
|
|
|
|
ARG WORK_DIR
|
|
|
|
COPY . /home/src
|
|
WORKDIR ${WORK_DIR}
|
|
|
|
RUN go build -mod=vendor -o retest ./main.go
|
|
|
|
FROM ${BASE_IMAGE}
|
|
|
|
ARG WORK_DIR
|
|
|
|
COPY --from=builder ${WORK_DIR}/retest /usr/local/bin/retest
|
|
|
|
ENTRYPOINT [ "/usr/local/bin/retest" ]
|