Skip to content

Commit 6f97d3b

Browse files
authored
Merge pull request #24 from ExpediaGroup/etr-1
cleanup workflows
2 parents 132dc5a + cf3277d commit 6f97d3b

File tree

4 files changed

+45
-25
lines changed

4 files changed

+45
-25
lines changed
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
name: Publish Docker image
2+
3+
on:
4+
push:
5+
tags:
6+
- 'v*'
7+
8+
jobs:
9+
publish-docker:
10+
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- name: Docker meta
15+
id: meta
16+
uses: docker/metadata-action@v5
17+
with:
18+
# list of Docker images to use as base name for tags
19+
images: |
20+
expediagroup/expedia-travel-recommendations-mcp
21+
# Generate Docker tags based on the following events/attributes
22+
tags: |
23+
type=ref,event=tag
24+
25+
- name: Set up QEMU
26+
uses: docker/setup-qemu-action@v3
27+
28+
- name: Set up Docker Buildx
29+
uses: docker/setup-buildx-action@v3
30+
31+
- name: Login to DockerHub
32+
uses: docker/login-action@v3
33+
with:
34+
username: ${{ secrets.DOCKER_HUB_USERNAME }}
35+
password: ${{ secrets.DOCKER_HUB_PASSWORD }}
36+
37+
- name: Build and push
38+
uses: docker/build-push-action@v5
39+
with:
40+
platforms: linux/amd64,linux/arm64,linux/arm/v7
41+
push: true
42+
tags: ${{ steps.meta.outputs.tags }}
43+
labels: ${{ steps.meta.outputs.labels }}
Lines changed: 1 addition & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,5 @@
11
name: Publish to PyPI and Docker Hub
22

3-
on:
4-
push:
5-
tags:
6-
- 'v*' # Triggers only on version tags like v1.0.0
7-
83
jobs:
94
build:
105
runs-on: ubuntu-latest
@@ -47,22 +42,4 @@ jobs:
4742
- name: Publish to PyPI
4843
uses: pypa/gh-action-pypi-publish@release/v1
4944
with:
50-
verbose: true
51-
52-
- name: Log in to Docker Hub
53-
uses: docker/login-action@v3
54-
with:
55-
username: ${{ secrets.DOCKER_HUB_USERNAME }}
56-
password: ${{ secrets.DOCKER_HUB_PASSWORD }}
57-
58-
- name: Build and push Docker image
59-
run: |
60-
IMAGE=${{ secrets.DOCKER_HUB_USERNAME }}/expedia-travel-recommendations-mcp
61-
VERSION=${GITHUB_REF#refs/tags/v}
62-
63-
# Build and tag with version and latest
64-
docker build -t $IMAGE:$VERSION -t $IMAGE:latest .
65-
66-
# Push both tags
67-
docker push $IMAGE:$VERSION
68-
docker push $IMAGE:latest
45+
verbose: true

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "expedia-travel-recommendations-mcp"
3-
version = "0.1.8"
3+
version = "0.1.9"
44
description = "Travel recommendations MCP Server"
55
readme = "README.md"
66
license = { file = "LICENSE" }

0 commit comments

Comments
 (0)