File tree Expand file tree Collapse file tree 1 file changed +17
-16
lines changed
Expand file tree Collapse file tree 1 file changed +17
-16
lines changed Original file line number Diff line number Diff line change 33export TAG_VERSION=$( git describe --tags --abbrev=0)
44if [[ -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' )
227fi
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+
2425docker system prune -af
2526docker build --build-arg=" TAG_VERSION=" $TAG_VERSION --build-arg=" GITHUB_TOKEN=" $GITHUB_NULLINSIDE_ORG_RELEASE_TOKEN --progress=plain --no-cache .
You can’t perform that action at this time.
0 commit comments