Skip to content

FEAT: Update airflow-chat dependencies #7

FEAT: Update airflow-chat dependencies

FEAT: Update airflow-chat dependencies #7

Workflow file for this run

name: Docker Image CI
on:
push:
branches: [ "main" ]
jobs:
filter:
runs-on: ubuntu-latest
outputs:
fastapi_mcp: ${{ steps.filter.outputs.fastapi_mcp == 'true' }}
airflow_plugin: ${{ steps.filter.outputs.airflow_plugin == 'true' }}
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0 # Ensures that the full history is fetched
- name: Paths filter
id: filter
uses: dorny/paths-filter@v3
with:
filters: |
fastapi_mcp:
- 'airflow_chat/plugins/app/**/*'
- 'pyproject.toml'
- 'poetry.lock'
- 'Dockerfile.server'
airflow_plugin:
- 'airflow_chat/**/*'
- 'pyproject.toml'
- 'poetry.lock'
mcp_fastapi_image:
runs-on: ubuntu-latest
needs: filter
if: needs.filter.outputs.fastapi_mcp == 'true'
steps:
-
name: Checkout
uses: actions/checkout@v4
-
name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
-
name: Set up QEMU
uses: docker/setup-qemu-action@v3
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
-
name: Generate timestamp
id: timestamp
run: echo "timestamp=$(date +%s)" >> $GITHUB_OUTPUT
-
name: Build and push
uses: docker/build-push-action@v6
with:
context: .
file: Dockerfile.server
push: true
tags: hipposysai/airflow-mcp-fastapi:latest,hipposysai/airflow-mcp-fastapi:${{ steps.timestamp.outputs.timestamp }}
platforms: linux/amd64,linux/arm64
publish_airflow_plugin:
runs-on: ubuntu-latest
needs: filter
if: needs.filter.outputs.airflow_plugin == 'true'
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.10'
- name: Install Poetry
run: curl -sSL https://install.python-poetry.org | python3 -
- name: Install dependencies
run: poetry install
- name: Build package
run: poetry build
- name: Publish to PyPI
env:
PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }}
run: poetry publish -u __token__ -p $PYPI_TOKEN