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: build:
name: ${{ matrix.image }} name: ${{ matrix.image }}
runs-on: ubuntu-latest runs-on: ubuntu-latest
strategy: strategy:
fail-fast: false fail-fast: false
matrix: matrix:
include: include:
- image: whatsapp-mcp-go-bridge - image: whatsapp-mcp-go-bridge
context: ./whatsapp-bridge context: ./whatsapp-bridge
- image: whatsapp-mcp-go-server - image: whatsapp-mcp-go-server
context: ./whatsapp-mcp-server context: ./whatsapp-mcp-server
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@v6 uses: actions/checkout@v6
@@ -48,24 +51,23 @@ jobs:
uses: docker/metadata-action@v6 uses: docker/metadata-action@v6
with: with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAMESPACE }}/${{ matrix.image }} images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAMESPACE }}/${{ matrix.image }}
tags: | tags: |
type=ref,event=branch
type=ref,event=pr
type=semver,pattern={{version}} type=semver,pattern={{version}}
type=semver,pattern={{major}}.{{minor}} type=semver,pattern={{major}}.{{minor}}
type=semver,pattern={{major}} type=semver,pattern={{major}}
type=sha,format=short type=raw,value=latest
type=raw,value=latest,enable=${{ github.ref == format('refs/heads/{0}', 'main') }}
- name: Build and push - name: Build and push
uses: docker/build-push-action@v7 uses: docker/build-push-action@v7
with: with:
context: ${{ matrix.context }} context: ${{ matrix.context }}
platforms: linux/amd64,linux/arm64 platforms: linux/amd64,linux/arm64
push: ${{ github.event_name != 'pull_request' }} push: true
tags: ${{ steps.meta.outputs.tags }} tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }} labels: ${{ steps.meta.outputs.labels }}
cache-from: type=gha,scope=${{ matrix.image }} cache-from: type=gha,scope=${{ matrix.image }}
cache-to: type=gha,mode=max,scope=${{ matrix.image }} cache-to: type=gha,mode=max,scope=${{ matrix.image }}
provenance: false provenance: false