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 3
3
export TAG_VERSION=$( git describe --tags --abbrev=0)
4
4
if [[ -z " $TAG_VERSION " ]]; then
5
5
# 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' )
22
7
fi
23
8
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
+
24
25
docker system prune -af
25
26
docker 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