Skip to content

Commit

Permalink
Merge pull request #44 from darklynx/dirty_mark_in_version
Browse files Browse the repository at this point in the history
add dirty mark to a version if service is build from dirty working tr…
  • Loading branch information
darklynx committed Jan 17, 2019
2 parents 8c71104 + b59eea8 commit 18698ef
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docker/multistage/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
FROM golang:latest as builder
WORKDIR /go/src/rbaskets
COPY . .
RUN GIT_VERSION="$(git describe || git symbolic-ref -q --short HEAD)" \
RUN GIT_VERSION="$(git describe --dirty='*' || git symbolic-ref -q --short HEAD)" \
&& GIT_COMMIT="$(git rev-parse HEAD)" \
&& GIT_COMMIT_SHORT="$(git rev-parse --short HEAD)" \
&& set -x \
Expand Down
2 changes: 1 addition & 1 deletion scripts/build/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ cd "$(dirname "$0")"
cd ../..

# collect git version information
GIT_VERSION="$(git describe)"
GIT_VERSION="$(git describe --dirty='*')"
GIT_COMMIT="$(git rev-parse HEAD)"
GIT_COMMIT_SHORT="$(git rev-parse --short HEAD)"

Expand Down
2 changes: 1 addition & 1 deletion scripts/build/build_linux.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ cd "$(dirname "$0")"
cd ../..

# collect git version information
GIT_VERSION="$(git describe)"
GIT_VERSION="$(git describe --dirty='*')"
GIT_COMMIT="$(git rev-parse HEAD)"
GIT_COMMIT_SHORT="$(git rev-parse --short HEAD)"

Expand Down

0 comments on commit 18698ef

Please sign in to comment.