Skip to content

Merge branch 'main' of https://github.com/3xCaffeine/mcp-server #2

Merge branch 'main' of https://github.com/3xCaffeine/mcp-server

Merge branch 'main' of https://github.com/3xCaffeine/mcp-server #2

Workflow file for this run

name: Build and Push Docker Image
on:
push:
branches:
- main
env:
REGISTRY: ghcr.io
IMAGE_NAME: mcp-server
jobs:
build-and-push:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Log in to Container Registry
uses: docker/login-action@v3
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push Docker image
uses: docker/build-push-action@v6
with:
context: .
push: true
tags: ghcr.io/3xcaffeine/${{ env.IMAGE_NAME }}:latest
cache-from: type=gha
cache-to: type=gha,mode=max
- name: Log out from GHCR
run: docker logout