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 1010# with this name, it will be used.
1111#
1212# 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}"
1426export TS_USE_TOOLCHAIN =1
1527
1628DEBUG_APK =tailscale-debug.apk
You can’t perform that action at this time.
0 commit comments