Merge pull request 'ci: Switch to CalVer (YYYY.MM.BUILD) with auto-generated versions' (#11) from ci/calver into main
Some checks failed
Build Docker Image / build (push) Failing after 48s

Reviewed-on: #11
This commit is contained in:
cal 2026-02-17 23:05:16 +00:00
commit af2fbc0234

View File

@ -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 }}