fix: proper tag version for docker images (#10)

* fix: proper tag version for docker images

* update: Clean up docker-publish.yml by removing blank lines

Removed unnecessary blank lines in the Docker publish workflow.

---------

Co-authored-by: Atul_Singh <atul.singh@carvaloo.com>
This commit is contained in:
Atul Singh
2026-05-13 14:09:14 +02:00
committed by GitHub
parent 92f5f431d7
commit d88b94e4f4
+8 -6
View File
@@ -18,14 +18,17 @@ jobs:
build:
name: ${{ matrix.image }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
include:
- image: whatsapp-mcp-go-bridge
context: ./whatsapp-bridge
- image: whatsapp-mcp-go-server
context: ./whatsapp-mcp-server
steps:
- name: Checkout
uses: actions/checkout@v6
@@ -48,24 +51,23 @@ jobs:
uses: docker/metadata-action@v6
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAMESPACE }}/${{ matrix.image }}
tags: |
type=ref,event=branch
type=ref,event=pr
type=semver,pattern={{version}}
type=semver,pattern={{major}}.{{minor}}
type=semver,pattern={{major}}
type=sha,format=short
type=raw,value=latest,enable=${{ github.ref == format('refs/heads/{0}', 'main') }}
type=raw,value=latest
- name: Build and push
uses: docker/build-push-action@v7
with:
context: ${{ matrix.context }}
platforms: linux/amd64,linux/arm64
push: ${{ github.event_name != 'pull_request' }}
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
cache-from: type=gha,scope=${{ matrix.image }}
cache-to: type=gha,mode=max,scope=${{ matrix.image }}
provenance: false