Skip to content
This repository was archived by the owner on Jan 31, 2024. It is now read-only.

Add git-hash-package to append git hash to package.json #46

Merged
merged 1 commit into from
Apr 25, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .ci/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ USER node

RUN yarn kbn bootstrap

RUN yarn add git-hash-package

USER root

ENV JAVA_HOME=/usr/lib/jvm/java-1.8.0-openjdk-amd64
Expand Down
1 change: 1 addition & 0 deletions .ci/script/docker/package.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ docker run \
/bin/bash -c "set -x && \
$CMD
./mvnw -DskipTests=true clean deploy -DaltDeploymentRepository=dev::default::file:./repository -B -e -Pserver-distro && \
../../kibana/node_modules/git-hash-package/index.js && \
jq '.version=\"\\(.version)-linux\"' package.json > package-linux.json && \
jq '.version=\"\\(.version)-darwin\"' package.json > package-darwin.json && \
jq '.version=\"\\(.version)-windows\"' package.json > package-windows.json && \
Expand Down