ci: add Docker image build to release workflow

Pushes ghcr.io/0xmassi/webclaw:latest and :vX.Y.Z on every tagged
release. Uses BuildKit cache for fast rebuilds.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Valerio 2026-03-27 16:48:44 +01:00
parent 81e78963d0
commit b039b99858

View file

@ -6,6 +6,7 @@ on:
permissions:
contents: write
packages: write
env:
CARGO_TERM_COLOR: always
@ -94,6 +95,31 @@ jobs:
artifacts/*.tar.gz
artifacts/SHA256SUMS
docker:
name: Docker
needs: release
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: docker/setup-buildx-action@v3
- uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- uses: docker/build-push-action@v6
with:
context: .
push: true
tags: |
ghcr.io/0xmassi/webclaw:latest
ghcr.io/0xmassi/webclaw:${{ github.ref_name }}
cache-from: type=gha
cache-to: type=gha,mode=max
homebrew:
name: Update Homebrew
needs: release