Skip to content

Commit

Permalink
fix(ci): Fix tag computation
Browse files Browse the repository at this point in the history
  • Loading branch information
PerfectSlayer committed Jan 15, 2025
1 parent c57523e commit db4d2a3
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/update-docker-build-image.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,14 +40,14 @@ jobs:
if [ -n "${{ github.event.inputs.tag }}" ]; then
TAG=${{ github.event.inputs.tag }}
else
current_month=$(date +%m)
current_year=$(date +%y)
CURRENT_MONTH=$(date +%m)
CURRENT_YEAR=$(date +%y)
case $current_month in
01) TAG_DATE="$$(($current_year - 1)).10" ;;
02|03|04) TAG_DATE="${current_year}.01" ;;
05|06|07) TAG_DATE="${current_year}.04" ;;
08|09|10) TAG_DATE="${current_year}.07" ;;
11|12) TAG_DATE="${current_year}.10" ;;
01) TAG_DATE="$(($CURRENT_YEAR - 1)).10" ;;
02|03|04) TAG_DATE="${CURRENT_YEAR}.01" ;;
05|06|07) TAG_DATE="${CURRENT_YEAR}.04" ;;
08|09|10) TAG_DATE="${CURRENT_YEAR}.07" ;;
11|12) TAG_DATE="${CURRENT_YEAR}.10" ;;
esac
TAG="v${TAG_DATE}-base"
fi
Expand Down

0 comments on commit db4d2a3

Please sign in to comment.