Skip to content

Commit 8372ef7

Browse files
committed
Add alias for GitVersion
1 parent fbe151f commit 8372ef7

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

Dockerfile

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,8 @@ RUN echo "deb http://download.mono-project.com/repo/debian wheezy/snapshots 4.4.
1010
# Install GitVersion
1111
RUN curl -Ls https://github.com/GitTools/GitVersion/releases/download/v4.0.0-beta.9/GitVersion.CommandLine.4.0.0-beta0009.nupkg -o tmp.zip \
1212
&& unzip -d /usr/lib/GitVersion tmp.zip \
13-
&& rm tmp.zip
13+
&& rm tmp.zip
14+
15+
RUN echo '#!/bin/bash\nexec mono /usr/lib/GitVersion/tools/GitVersion.exe "$@"' > /usr/bin/git-version
16+
17+
RUN chmod +x /usr/bin/git-version

0 commit comments

Comments
 (0)