Skip to content

Commit f4c38b9

Browse files
authored
Merge pull request #454 from intelowlproject/develop
1.4.3
2 parents ae1b896 + 0af646d commit f4c38b9

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

docker/.version

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
REACT_APP_GREEDYBEAR_VERSION="1.4.2"
1+
REACT_APP_GREEDYBEAR_VERSION="1.4.3"

docker/hooks/build

+3-2
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,11 @@ echo "$(pwd)"
1010
echo "current branch"
1111
echo "$SOURCE_BRANCH"
1212

13-
if [[ "$SOURCE_BRANCH" == "main" ]]; then
13+
version_regex='^[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}$'
14+
if [[ "$SOURCE_BRANCH" == "main" || "$SOURCE_BRANCH" =~ $version_regex ]]; then
1415
echo "The branch is main, proceeding with multi-arch build"
1516
docker buildx create --name multiarch --use
16-
docker buildx build -f "$DOCKERFILE_PATH" -t "$IMAGE_NAME" --platform linux/arm64,linux/amd64,windows-amd64 --push .
17+
docker buildx build -f "$DOCKERFILE_PATH" -t "$IMAGE_NAME" --platform linux/arm64,linux/amd64,windows/amd64 --push .
1718
else
1819
echo "The branch is not main, proceeding with classic build"
1920
docker buildx build -f "$DOCKERFILE_PATH" -t "$IMAGE_NAME" --push .

0 commit comments

Comments
 (0)