Skip to content

Commit a8a4c51

Browse files
Merge pull request #25 from nullinside-development-group/fix/update
fix: upgrade process with no rate limit
2 parents 56a2960 + 74b6d53 commit a8a4c51

File tree

1 file changed

+17
-16
lines changed

1 file changed

+17
-16
lines changed

go.sh

Lines changed: 17 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -3,23 +3,24 @@
33
export TAG_VERSION=$(git describe --tags --abbrev=0)
44
if [[ -z "$TAG_VERSION" ]]; then
55
# Get the latest version for the repo
6-
export CURRENT_VERSION=$(curl "https://api.github.com/repos/nullinside-development-group/nullinside-site-monitor/tags" | jq -r '.[0].name')
7-
major=1
8-
minor=0
9-
build=-1
10-
11-
# Break down the version number into it's components
12-
regex="([0-9]+).([0-9]+).([0-9]+)"
13-
if [[ $CURRENT_VERSION =~ $regex ]]; then
14-
major="${BASH_REMATCH[1]}"
15-
minor="${BASH_REMATCH[2]}"
16-
build="${BASH_REMATCH[3]}"
17-
fi
18-
19-
# Increment the build always
20-
build=$(echo $build+1 | bc)
21-
export TAG_VERSION=${major}.${minor}.${build}
6+
export TAG_VERSION=$(curl "https://api.github.com/repos/nullinside-development-group/nullinside-site-monitor/tags" | jq -r '.[0].name')
227
fi
238

9+
major=1
10+
minor=0
11+
build=-1
12+
13+
# Break down the version number into it's components
14+
regex="([0-9]+).([0-9]+).([0-9]+)"
15+
if [[ $TAG_VERSION =~ $regex ]]; then
16+
major="${BASH_REMATCH[1]}"
17+
minor="${BASH_REMATCH[2]}"
18+
build="${BASH_REMATCH[3]}"
19+
fi
20+
21+
# Increment the build always
22+
build=$(echo $build+1 | bc)
23+
export TAG_VERSION=${major}.${minor}.${build}
24+
2425
docker system prune -af
2526
docker build --build-arg="TAG_VERSION="$TAG_VERSION --build-arg="GITHUB_TOKEN="$GITHUB_NULLINSIDE_ORG_RELEASE_TOKEN --progress=plain --no-cache .

0 commit comments

Comments
 (0)