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
45 changes: 45 additions & 0 deletions .github/workflows/release-please.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,57 @@ on:
permissions:
contents: write
pull-requests: write
packages: write

jobs:
release-please:
runs-on: ubuntu-latest
outputs:
release_created: ${{ steps.release.outputs.release_created }}
tag_name: ${{ steps.release.outputs.tag_name }}
version: ${{ steps.release.outputs.version }}
steps:
- uses: googleapis/release-please-action@v4
id: release
with:
release-type: python
package-name: adcp-sales-agent

publish-docker:
needs: release-please
if: ${{ needs.release-please.outputs.release_created }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

- name: Log in to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Extract metadata for Docker
id: meta
uses: docker/metadata-action@v5
with:
images: ghcr.io/${{ github.repository }}
tags: |
type=semver,pattern={{version}},value=${{ needs.release-please.outputs.version }}
type=semver,pattern={{major}}.{{minor}},value=${{ needs.release-please.outputs.version }}
type=semver,pattern={{major}},value=${{ needs.release-please.outputs.version }}
type=raw,value=latest

- name: Build and push Docker image
uses: docker/build-push-action@v5
with:
context: .
file: Dockerfile.fly
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
cache-from: type=gha
cache-to: type=gha,mode=max
10 changes: 9 additions & 1 deletion fly.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,22 @@
#
# See https://fly.io/docs/reference/configuration/ for information about how to use this file.
#
# Port Architecture:
# - Port 8000: nginx reverse proxy (external-facing, what Fly routes to)
# - Port 8080: MCP server (internal, behind nginx)
# - Port 8001: Admin UI (internal, behind nginx)
# - Port 8091: A2A server (internal, behind nginx)
#
# The *_PORT env vars configure where internal services bind. nginx proxies
# external requests on 8000 to the appropriate internal service by path.

app = "adcp-sales-agent"
primary_region = "iad"

[build]
dockerfile = "Dockerfile.fly"

# Single unified service exposed via nginx
# nginx proxy - routes to internal services by path
[[services]]
internal_port = 8000
protocol = "tcp"
Expand Down