Skip to content

Commit a12bb9c

Browse files
committed
finalize version bump
1 parent 22f7115 commit a12bb9c

File tree

4 files changed

+15
-4
lines changed

4 files changed

+15
-4
lines changed

containers/build.sh

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,17 @@ DOTENV="$REPO/.env"
4343

4444
# Set environment variables for the build process
4545
export GIT_REVISION=$(git rev-parse --short HEAD)
46+
export REACT_APP_GIT_REVISION=$GIT_REVISION
47+
48+
# Compute "development" version from latest tag
49+
VERSION="$(git describe --abbrev=0)"
50+
VERSION_MAJOR="${VERSION%%\.*}"
51+
VERSION_MINOR="${VERSION#*.}"
52+
VERSION_MINOR="${VERSION_MINOR%.*}"
53+
VERSION_PATCH="${VERSION##*.}"
54+
VERSION_PATCH=$((VERSION_PATCH+1))
55+
56+
export REACT_APP_VERSION_NUMBER="${VERSION_MAJOR}.${VERSION_MINOR}.${VERSION_PATCH}-dev"
4657

4758
# Load .env file from project root if it exists
4859
if [ -f $DOTENV ]; then

containers/docker-compose.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -139,8 +139,8 @@ services:
139139
REACT_APP_TENANT_BASE_URL: "http://localhost:8080/v1/"
140140
REACT_APP_QUARTERDECK_BASE_URL: "http://localhost:8088/v1/"
141141
REACT_APP_ANALYTICS_ID: ${REACT_APP_ANALYTICS_ID}
142-
REACT_APP_VERSION_NUMBER: v0.7.2-dev
143-
REACT_APP_GIT_REVISION: ${GIT_REVISION}
142+
REACT_APP_VERSION_NUMBER: ${REACT_APP_VERSION_NUMBER}
143+
REACT_APP_GIT_REVISION: ${REACT_APP_GIT_REVISION}
144144
REACT_APP_SENTRY_DSN: ${REACT_APP_SENTRY_DSN}
145145
REACT_APP_SENTRY_ENVIRONMENT: development
146146
REACT_APP_USE_DASH_LOCALE: "true"

web/beacon-app/.env.template

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Displays the build version (tag) and git revision for debugging
2-
REACT_APP_VERSION_NUMBER=v0.7.2-dev
2+
REACT_APP_VERSION_NUMBER=v0.9.0-dev
33
REACT_APP_GIT_REVISION=
44

55
# Specifies connection information for the backend

web/beacon-app/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "beacon-app",
3-
"version": "0.7.1",
3+
"version": "0.8.0",
44
"description": "User UI for Ensign.",
55
"main": "index.js",
66
"repository": "https://github.com/rotationalio/ensign",

0 commit comments

Comments
 (0)