Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
43 changes: 0 additions & 43 deletions .github/workflows/publish-docker.yaml

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
name: Publish to PyPI and Docker Hub

on:
push:
tags:
- 'v*' # Triggers only on version tags like v1.0.0

jobs:
build:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -42,4 +47,22 @@ jobs:
- name: Publish to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
verbose: true
verbose: true

- name: Log in to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_HUB_USERNAME }}
password: ${{ secrets.DOCKER_HUB_PASSWORD }}

- name: Build and push Docker image
run: |
IMAGE=${{ secrets.DOCKER_HUB_USERNAME }}/expedia-travel-recommendations-mcp
VERSION=${GITHUB_REF#refs/tags/v}

# Build and tag with version and latest
docker build -t $IMAGE:$VERSION -t $IMAGE:latest .

# Push both tags
docker push $IMAGE:$VERSION
docker push $IMAGE:latest
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "expedia-travel-recommendations-mcp"
version = "0.1.9"
version = "0.1.8"
description = "Travel recommendations MCP Server"
readme = "README.md"
license = { file = "LICENSE" }
Expand Down