Files
openclaw-brew/.gitea/workflows/build.yaml
T
da7e 48e04d5cac
Build OpenClaw image / build (push) Canceled after 0s
Add .gitea/workflows/build.yaml
2026-10-02 17:19:14 +02:00

39 lines
1.1 KiB
YAML

# Builds the custom OpenClaw image and pushes it to Gitea's container registry.
# Runs on every push to main, weekly (to pick up new OpenClaw releases), or manually.
# Requires repo secrets REGISTRY_USER and REGISTRY_TOKEN (token with package:write).
name: Build OpenClaw image
on:
push:
branches: [main]
schedule:
- cron: "0 4 * * 1" # Mondays 04:00
workflow_dispatch:
env:
REGISTRY: gitea.davidgailleton.me
IMAGE: gitea.davidgailleton.me/da7e/openclaw-brew
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: docker/setup-buildx-action@v3
- uses: docker/login-action@v3
with:
registry: ${{ env.REGISTRY }}
username: ${{ secrets.REGISTRY_USER }}
password: ${{ secrets.REGISTRY_TOKEN }}
- uses: docker/build-push-action@v6
with:
context: .
pull: true # always fetch the newest base OpenClaw image
push: true
tags: |
${{ env.IMAGE }}:latest
${{ env.IMAGE }}:${{ github.sha }}