Merge pull request #128 from intelligence-assist/fix/docker-image-tagging

fix: add nightly tag for main branch Docker builds
This commit is contained in:
Cheffromspace
2025-05-29 13:01:23 -05:00
committed by GitHub

View File

@@ -51,7 +51,10 @@ jobs:
type=semver,pattern={{version}}
type=semver,pattern={{major}}.{{minor}}
type=semver,pattern={{major}}
# Latest tag for version tags
type=raw,value=latest,enable=${{ startsWith(github.ref, 'refs/tags/v') }}
# Nightly tag for main branch pushes
type=raw,value=nightly,enable=${{ github.ref == 'refs/heads/main' }}
- name: Build and push Docker image
uses: docker/build-push-action@v6
@@ -106,9 +109,13 @@ jobs:
with:
images: ${{ env.DOCKER_HUB_ORGANIZATION }}/claudecode
tags: |
type=ref,event=branch,suffix=-staging
type=semver,pattern={{version}}
type=semver,pattern={{major}}.{{minor}}
type=semver,pattern={{major}}
# Latest tag for version tags
type=raw,value=latest,enable=${{ startsWith(github.ref, 'refs/tags/v') }}
# Nightly tag for main branch pushes
type=raw,value=nightly,enable=${{ github.ref == 'refs/heads/main' }}
- name: Build and push Claude Code Docker image
uses: docker/build-push-action@v6