8C7C feat: initial beta release #1
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build mcp-server-python image | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- main | |
jobs: | |
build: | |
name: Build and push mcp-server-python image | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
packages: write | |
env: | |
IMAGE_NAME: mcp-server-python | |
MAJOR_VERSION: "0" | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Set version | |
id: version | |
run: echo "VERSION=${MAJOR_VERSION}.${GITHUB_RUN_NUMBER}" >> $GITHUB_OUTPUT | |
- name: Set up QEMU for cross-platform builds | |
uses: docker/setup-qemu-action@v3 | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v3 | |
- name: Login to GHCR | |
uses: docker/login-action@v3 | |
with: | |
registry: ghcr.io | |
username: ${{ github.actor }} | |
password: ${{ secrets.GITHUB_TOKEN }} | |
- name: Build and push mcp-server-python image | |
uses: docker/build-push-action@v4 | |
with: | |
context: . | |
file: Dockerfile | |
push: true | |
platforms: linux/amd64,linux/arm64 | |
tags: | | |
ghcr.io/kestra-io/${{ env.IMAGE_NAME }}:${{ steps.version.outputs.VERSION }} | |
ghcr.io/kestra-io/${{ env.IMAGE_NAME }}:latest |