Merge pull request #197 from esnible/reservation-tool-lockfile #11
Workflow file for this run
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-Publish | |
| on: | |
| # Run this workflow on pushes of tags like v1.0.0 | |
| push: | |
| tags: | |
| - 'v*' | |
| # Allows also to run this workflow manually from the Actions tab | |
| workflow_dispatch: | |
| permissions: {} | |
| jobs: | |
| build-and-push: | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 30 | |
| permissions: | |
| contents: read | |
| packages: write | |
| strategy: | |
| matrix: | |
| image_config: | |
| - name: a2a_contact_extractor | |
| path: ./a2a | |
| - name: a2a_currency_converter | |
| path: ./a2a | |
| - name: file_organizer | |
| path: ./a2a | |
| - name: generic_agent | |
| path: ./a2a | |
| - name: git_issue_agent | |
| path: ./a2a | |
| - name: image_service | |
| path: ./a2a | |
| - name: reservation_service | |
| path: ./a2a | |
| - name: simple_generalist | |
| path: ./a2a | |
| - name: slack_researcher | |
| path: ./a2a | |
| - name: weather_service | |
| path: ./a2a | |
| - name: appworld_apis | |
| path: ./mcp | |
| - name: cloud_storage_tool | |
| path: ./mcp | |
| - name: flight_tool | |
| path: ./mcp | |
| - name: github_tool | |
| path: ./mcp | |
| - name: image_tool | |
| path: ./mcp | |
| - name: movie_tool | |
| path: ./mcp | |
| - name: reservation_tool | |
| path: ./mcp | |
| - name: shopping_tool | |
| path: ./mcp | |
| - name: slack_tool | |
| path: ./mcp | |
| - name: weather_tool | |
| path: ./mcp | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6 | |
| - name: Set up QEMU | |
| uses: docker/setup-qemu-action@ce360397dd3f832beb865e1373c09c0e9f86d70a # v4 | |
| - name: Set up Docker Buildx | |
| uses: docker/setup-buildx-action@4d04d5d9486b7bd6fa91e7baf45bbb4f8b9deedd # v4 | |
| - name: Log in to ghcr.io | |
| uses: docker/login-action@b45d80f862d83dbcd57f89517bcf500b2ab88fb2 # v4 | |
| with: | |
| registry: ghcr.io | |
| username: ${{ github.actor }} | |
| password: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Extract Docker metadata for ${{ matrix.image_config.name }} | |
| id: meta | |
| uses: docker/metadata-action@030e881283bb7a6894de51c315a6bfe6a94e05cf # v6 | |
| with: | |
| images: ghcr.io/${{ github.repository }}/${{ matrix.image_config.name }} | |
| tags: | | |
| # extract tag from git ref, e.g., v1.0.0 -> 1.0.0 | |
| type=ref,event=tag | |
| # also tag as latest on tag push | |
| type=raw,value=latest,enable=${{ github.ref_type == 'tag' }} | |
| - name: Build and push ${{ matrix.image_config.name }} | |
| uses: docker/build-push-action@d08e5c354a6adb9ed34480a06d141179aa583294 # v7 | |
| with: | |
| context: ${{ matrix.image_config.path }}/${{ matrix.image_config.name }} | |
| file: ${{ matrix.image_config.path }}/${{ matrix.image_config.name }}/Dockerfile | |
| push: true | |
| platforms: linux/amd64,linux/arm64 | |
| tags: ${{ steps.meta.outputs.tags }} | |
| labels: ${{ steps.meta.outputs.labels }} | |