mirror of
https://github.com/ceph/ceph-csi.git
synced 2025-06-14 18:53:35 +00:00
ci: add retest github action
added source code of github retest action. Signed-off-by: Madhu Rajanna <madhupr007@gmail.com>
This commit is contained in:
committed by
mergify[bot]
parent
f7e7172c7b
commit
5a53f53166
15
actions/retest/Dockerfile
Normal file
15
actions/retest/Dockerfile
Normal file
@ -0,0 +1,15 @@
|
||||
ARG WORK_DIR="/home/src"
|
||||
ARG BASE_IMAGE="golang:1.16"
|
||||
|
||||
FROM ${BASE_IMAGE} as builder
|
||||
|
||||
COPY . /home/src
|
||||
WORKDIR ${WORK_DIR}
|
||||
|
||||
RUN go build -mod=vendor -o retest ./main.go
|
||||
|
||||
FROM scratch
|
||||
|
||||
COPY --from=builder ${WORK_DIR}/retest /usr/local/bin/retest
|
||||
|
||||
ENTRYPOINT [ "/usr/local/bin/retest" ]
|
Reference in New Issue
Block a user