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:
Madhu Rajanna
2021-11-15 12:19:04 +05:30
committed by mergify[bot]
parent f7e7172c7b
commit 5a53f53166
287 changed files with 74334 additions and 0 deletions

15
actions/retest/Dockerfile Normal file
View 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" ]