File tree Expand file tree Collapse file tree 1 file changed +13
-1
lines changed Expand file tree Collapse file tree 1 file changed +13
-1
lines changed Original file line number Diff line number Diff line change 10
10
# with this name, it will be used.
11
11
#
12
12
# The convention here is tailscale-android-build-amd64-<date>
13
- DOCKER_IMAGE =tailscale-android-build-amd64-191124
13
+ #
14
+ # Compute a quarterly version string.
15
+ year =$(date +%y )
16
+ month =$(date +%m )
17
+ # Convert month to an integer.
18
+ month_int =$(printf "%d" "$month" )
19
+ # Calculate the quarter's start month:
20
+ # Quarter = floor((month-1)/3), then start = (quarter*3)+1.
21
+ quarter_start =$(( ((month_int - 1 ) / 3) * 3 + 1 ))
22
+ formatted_quarter =$(printf "%02d" "$quarter_start" )
23
+
24
+ # Set the Docker image name. This will update every 3 months.
25
+ DOCKER_IMAGE ="tailscale-android-build-amd64-${year}${formatted_quarter}"
14
26
export TS_USE_TOOLCHAIN =1
15
27
16
28
DEBUG_APK =tailscale-debug.apk
You can’t perform that action at this time.
0 commit comments