Skip to content

Update clone URL in README #7

Update clone URL in README

Update clone URL in README #7

Workflow file for this run

name: Publish Agents
# Trigger this workflow when pushing main branch and tags
on:
push:
branches:
- main
tags:
- 'v*' # Trigger on version tags like v1.0.0, v1.1.0
jobs:
publish:
runs-on: ubuntu-latest
strategy:
matrix:
include:
# Update this to build your own agent images.
- name: adk-debate-judge
dockerfile: scenarios/debate/Dockerfile.adk-debate-judge
- name: debate-judge
dockerfile: scenarios/debate/Dockerfile.debate-judge
- name: debater
dockerfile: scenarios/debate/Dockerfile.debater
- name: tau2-agent
dockerfile: scenarios/tau2/Dockerfile.tau2-agent
- name: tau2-evaluator
dockerfile: scenarios/tau2/Dockerfile.tau2-evaluator
# These permissions are required for the workflow to:
# - Read repository contents (checkout code)
# - Write to GitHub Container Registry (push Docker images)
permissions:
contents: read
packages: write
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Log in to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
# GITHUB_TOKEN is automatically provided by GitHub Actions
# No manual secret configuration needed!
# It has permissions based on the 'permissions' block above
password: ${{ secrets.GITHUB_TOKEN }}
- name: Extract metadata for Docker
id: meta
uses: docker/metadata-action@v5
with:
images: ghcr.io/${{ github.repository }}-${{ matrix.name }}
tags: |
# For tags like v1.0, create tag '1.0'
type=semver,pattern={{version}}
# For tags like v1.0, create tag '1'
type=semver,pattern={{major}}
# For main branch, create tag 'latest'
type=raw,value=latest,enable={{is_default_branch}}
# For PRs, create tag 'pr-123'
type=ref,event=pr
- name: Build and push Docker image (${{ matrix.name }})
id: build
uses: docker/build-push-action@v5
with:
context: .
file: ${{ matrix.dockerfile }}
# Only push if this is a push event (not a PR)
# PRs will build but not push to avoid polluting the registry
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
# Explicitly build for linux/amd64 (GitHub Actions default)
platforms: linux/amd64
- name: Output image digest
if: github.event_name != 'pull_request'
run: |
echo "## Docker Image Published: ${{ matrix.name }} :rocket:" >> $GITHUB_STEP_SUMMARY
echo "" >> $GITHUB_STEP_SUMMARY
echo "**Tags:** ${{ steps.meta.outputs.tags }}" >> $GITHUB_STEP_SUMMARY
echo "" >> $GITHUB_STEP_SUMMARY
echo "**Digest:** \`${{ steps.build.outputs.digest }}\`" >> $GITHUB_STEP_SUMMARY
echo "" >> $GITHUB_STEP_SUMMARY
echo "Use this digest in your MANIFEST.json for reproducibility." >> $GITHUB_STEP_SUMMARY