Skip to content

Commit c26ffd9

Browse files
mferonldurnez
authored andcommitted
feat: Allow image build from git branch if tag not found
1 parent 0d0ddf2 commit c26ffd9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ RUN apt-get update && apt-get upgrade -y && apt-get install -y \
1717

1818
WORKDIR /opencve
1919

20-
RUN git clone --depth 1 -b v${OPENCVE_VERSION} "${OPENCVE_REPOSITORY}" .
20+
RUN git clone --depth 1 -b v${OPENCVE_VERSION} "${OPENCVE_REPOSITORY}" . || git clone --depth 1 -b ${OPENCVE_VERSION} "${OPENCVE_REPOSITORY}" .
2121

2222
WORKDIR /app
2323

0 commit comments

Comments
 (0)