Files
gitops-automation/.gitea/workflows/build.yml
T
william 357791d6e3
build-agent / build-and-push (push) Failing after 18s
Scaffold Matrix + GitOps + Claude automation stack
2026-08-23 10:25:57 +00:00

27 lines
768 B
YAML

name: build-agent
on:
push:
branches: [main]
paths:
- "agent/**"
- ".gitea/workflows/build.yml"
jobs:
build-and-push:
# If your act_runner advertises a different label than "docker" (check its
# config.yaml / GITEA_RUNNER_LABELS), update this to match.
runs-on: docker
steps:
- uses: actions/checkout@v4
- name: Log in to Gitea registry
run: |
echo "${{ secrets.GITEA_TOKEN }}" | docker login "${{ vars.GITEA_HOST }}" \
-u "${{ gitea.actor }}" --password-stdin
- name: Build and push claude-agent image
run: |
IMAGE="${{ vars.GITEA_HOST }}/${{ gitea.repository }}/claude-agent:latest"
docker build -t "$IMAGE" ./agent
docker push "$IMAGE"