fix: Update Docker build workflow to conditionally enable latest tag

- Modified the Docker build workflow to enable the 'latest' tag only for the main or master branches, ensuring that the latest image is tagged appropriately based on the branch context.
This commit is contained in:
agessaman committed 2026-02-03 08:35:16 -08:00
1 parent e6bec91c2b
commit 28436d92b6
1 file changed
+1 -1
+1 -1
View File
@@ -55,7 +55,7 @@ jobs:
type=semver,pattern={{major}}.{{minor}}
type=semver,pattern={{major}}
type=sha,prefix={{branch}}-
type=raw,value=latest,enable={{is_default_branch}}
type=raw,value=latest,enable=${{ github.ref == 'refs/heads/main' || github.ref == 'refs/heads/master' }}
- name: Build and push Docker image
uses: docker/build-push-action@v5