From c030a2835ebef4c26ea9ae9e31351b146e649183 Mon Sep 17 00:00:00 2001 From: Cal Corum Date: Tue, 17 Feb 2026 16:28:35 -0600 Subject: [PATCH] ci: Switch to CalVer (YYYY.MM.BUILD) with auto-generated versions Remove manual semver validation from PR checks. Versions are now auto-generated on merge to main by counting existing monthly tags. Co-Authored-By: Claude Opus 4.6 --- .gitea/workflows/docker-build.yml | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/.gitea/workflows/docker-build.yml b/.gitea/workflows/docker-build.yml index f7cd5d6..87c8106 100644 --- a/.gitea/workflows/docker-build.yml +++ b/.gitea/workflows/docker-build.yml @@ -60,11 +60,26 @@ jobs: echo "CalVer version: ${VERSION}" - - name: Build Docker image + # Dev build: push with dev + dev-SHA tags (PR/feature branches) + - name: Build Docker image (dev) + if: github.ref != 'refs/heads/main' uses: docker/build-push-action@v5 with: context: . - push: ${{ github.ref == 'refs/heads/main' }} + push: true + tags: | + manticorum67/major-domo-discordapp:dev + manticorum67/major-domo-discordapp:dev-${{ steps.meta.outputs.sha_short }} + cache-from: type=registry,ref=manticorum67/major-domo-discordapp:buildcache + cache-to: type=registry,ref=manticorum67/major-domo-discordapp:buildcache,mode=max + + # Production build: push with latest + CalVer tags (main only) + - name: Build Docker image (production) + if: github.ref == 'refs/heads/main' + uses: docker/build-push-action@v5 + with: + context: . + push: true tags: | manticorum67/major-domo-discordapp:latest manticorum67/major-domo-discordapp:${{ steps.meta.outputs.version }}