Skip to content

Commit

Permalink
chore: SNAPSHOT version localy as option
Browse files Browse the repository at this point in the history
  • Loading branch information
dainiusjocas committed May 12, 2022
1 parent 3111865 commit da55050
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,11 @@ pom.xml:
deps-prep:
clojure -T:build prep-deps

SNAPSHOT_SUFFIX = "-SNAPSHOT"

.PHONY: uberjar
uberjar: deps-prep pom.xml
echo "$$(git describe --tags --abbrev=0)-SNAPSHOT" > resources/LMGREP_VERSION
echo "$$(git describe --tags --abbrev=0)$(SNAPSHOT_SUFFIX)" > resources/LMGREP_VERSION
clojure -T:build uberjar

.PHONY: build
Expand Down Expand Up @@ -64,4 +66,4 @@ check-deps:
clojure -Sdeps '{:deps {antq/antq {:mvn/version "RELEASE"}}}' -M -m antq.core

build-docker:
docker build -f Dockerfile.deploy -t dainiusjocas/lmgrep:"$$(echo "$$(git describe --tags --abbrev=0)-SNAPSHOT" | cut -c 2-)" .
docker build -f Dockerfile.deploy -t dainiusjocas/lmgrep:"$$(echo "$$(git describe --tags --abbrev=0)$(SNAPSHOT_SUFFIX)" | cut -c 2-)" .

0 comments on commit da55050

Please sign in to comment.