From d88b94e4f45af60b31646b43db4e1301096e6dc0 Mon Sep 17 00:00:00 2001 From: Atul Singh Date: Wed, 13 May 2026 14:09:14 +0200 Subject: [PATCH] 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 --- .github/workflows/docker-publish.yml | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/.github/workflows/docker-publish.yml b/.github/workflows/docker-publish.yml index 3fc8ea9..a4d25fb 100644 --- a/.github/workflows/docker-publish.yml +++ b/.github/workflows/docker-publish.yml @@ -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 -