Skip to content

Commit 496a61f

Browse files
authored
CircleCI: set tag & release version with fossildb
1 parent 9c92dcb commit 496a61f

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

.circleci/config.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ jobs:
2121
SBT_VERSION_TAG: sbt-0.13.15_mongo-3.2.17_node-8.x_jdk-8
2222
USER_UID: 1001
2323
USER_GID: 1001
24+
TARGET_DIR: &target_dir target/scala-2.12
2425
steps:
2526
- checkout
2627
- attach_workspace:
@@ -34,10 +35,14 @@ jobs:
3435
- run:
3536
name: Build server
3637
command: docker-compose run sbt sbt assembly
38+
- run:
39+
name: Get FossilDB version
40+
command: docker-compose run sbt java -jar $TARGET_DIR/fossildb.jar --version > $TARGET_DIR/version
3741
- persist_to_workspace:
38-
root: target/scala-2.12
42+
root: *target_dir
3943
paths:
4044
- fossildb.jar
45+
- version
4146
- save_cache:
4247
key: cache-{{ .Branch }}
4348
paths:
@@ -139,7 +144,7 @@ jobs:
139144
-r fossildb
140145
-c $(git rev-parse HEAD)
141146
-b "executable jar of __fossildb__"
142-
$(git semver next)
147+
$(cat /tmp/workspace/version)
143148
/tmp/workspace/fossildb.jar
144149
145150
workflows:

0 commit comments

Comments
 (0)