paygress-cli 0.1.9

Pay-per-use compute marketplace using Cashu ecash and Nostr — no accounts, no signups
Documentation
name: agent-sandbox image

on:
  # Manual trigger so maintainers can rebuild without a tag bump.
  workflow_dispatch:
  # Tag-driven publish. Tag pattern is intentionally distinct from
  # paygress-cli release tags so cli releases don't churn the image.
  push:
    tags:
      - 'agent-sandbox-v*'

permissions:
  contents: read
  packages: write

jobs:
  build-and-push:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4

      - uses: docker/setup-qemu-action@v3
      - uses: docker/setup-buildx-action@v3

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

      - name: Derive image metadata
        id: meta
        uses: docker/metadata-action@v5
        with:
          # Lowercase image name; ghcr is case-sensitive on owner.
          images: ghcr.io/${{ github.repository_owner }}/paygress-agent-sandbox
          tags: |
            type=match,pattern=agent-sandbox-(v.+),group=1
            type=raw,value=latest,enable={{is_default_branch}}

      - name: Build and push
        uses: docker/build-push-action@v5
        with:
          context: ./images/agent-sandbox
          # Multi-arch so providers running on ARM64 hosts (Hetzner
          # AX-arm, Oracle Ampere, Apple Silicon test boxes) pull a
          # native image instead of qemu-emulating amd64.
          platforms: linux/amd64,linux/arm64
          push: true
          tags: ${{ steps.meta.outputs.tags }}
          labels: ${{ steps.meta.outputs.labels }}
          cache-from: type=gha
          cache-to: type=gha,mode=max