diff --git a/.github/workflows/docker-publish-mcp.yml b/.github/workflows/docker-publish-mcp.yml index c33583a..99a0aef 100644 --- a/.github/workflows/docker-publish-mcp.yml +++ b/.github/workflows/docker-publish-mcp.yml @@ -10,9 +10,39 @@ on: jobs: publish: - uses: agiletec-inc/github-actions/.github/workflows/docker-ghcr-publish.yml@main - with: - image-name: mindbase-mcp - dockerfile: ./apps/mcp-server/Dockerfile - context: ./apps/mcp-server - platforms: linux/amd64,linux/arm64 + name: docker-publish + runs-on: ubuntu-latest + timeout-minutes: 30 + permissions: + contents: read + packages: write + steps: + - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 + - uses: docker/setup-qemu-action@96fe6ef7f33517b61c61be40b68a1882f3264fb8 # v4.2.0 + - uses: docker/setup-buildx-action@d7f5e7f509e45cec5c76c4d5afdd7de93d0b3df5 # v4.1.0 + - uses: docker/login-action@650006c6eb7dba73a995cc03b0b2d7f5ca915bee # v4.2.0 + if: github.event_name != 'pull_request' + with: + registry: ghcr.io + username: ${{ github.actor }} + password: ${{ secrets.GITHUB_TOKEN }} + - id: meta + uses: docker/metadata-action@80c7e94dd9b9319bd5eb7a0e0fe9291e23a2a2e9 # v6.1.0 + with: + images: ghcr.io/${{ github.repository_owner }}/mindbase-mcp + tags: | + type=ref,event=branch + type=semver,pattern={{version}} + type=semver,pattern={{major}}.{{minor}} + type=sha,prefix= + type=raw,value=latest,enable={{is_default_branch}} + - uses: docker/build-push-action@53b7df96c91f9c12dcc8a07bcb9ccacbed38856a # v7.3.0 + with: + context: ./apps/mcp-server + file: ./apps/mcp-server/Dockerfile + push: ${{ github.event_name != 'pull_request' }} + tags: ${{ steps.meta.outputs.tags }} + labels: ${{ steps.meta.outputs.labels }} + cache-from: type=gha + cache-to: type=gha,mode=max + platforms: linux/amd64,linux/arm64