File tree 2 files changed +4
-3
lines changed
2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change 1
- REACT_APP_GREEDYBEAR_VERSION="1.4.2 "
1
+ REACT_APP_GREEDYBEAR_VERSION="1.4.3 "
Original file line number Diff line number Diff line change @@ -10,10 +10,11 @@ echo "$(pwd)"
10
10
echo " current branch"
11
11
echo " $SOURCE_BRANCH "
12
12
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
14
15
echo " The branch is main, proceeding with multi-arch build"
15
16
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 .
17
18
else
18
19
echo " The branch is not main, proceeding with classic build"
19
20
docker buildx build -f " $DOCKERFILE_PATH " -t " $IMAGE_NAME " --push .
You can’t perform that action at this time.
0 commit comments