ci(docker): build separate picoclaw and picoclaw-whatsapp images

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
github-actions[bot] 2026-04-03 08:52:19 +02:00
parent b028a44dc7
commit b99c3a06c0

View file

@ -6,7 +6,6 @@ on:
env: env:
REGISTRY: ghcr.io REGISTRY: ghcr.io
IMAGE_NAME: sushi30/picoclaw
jobs: jobs:
build: build:
@ -35,16 +34,30 @@ jobs:
shell: bash shell: bash
run: echo "short=${GITHUB_SHA::7}" >> "$GITHUB_OUTPUT" run: echo "short=${GITHUB_SHA::7}" >> "$GITHUB_OUTPUT"
- name: 🚀 Build and push Docker image - name: 🚀 Build and push picoclaw image
uses: docker/build-push-action@v7 uses: docker/build-push-action@v7
with: with:
context: . context: .
file: docker/Dockerfile file: docker/Dockerfile
push: true push: true
build-args: BUILD_TARGET=build
tags: | tags: |
${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:sushi30 ${{ env.REGISTRY }}/sushi30/picoclaw:latest
${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:picoclaw-whatsapp ${{ env.REGISTRY }}/sushi30/picoclaw:sha-${{ steps.sha.outputs.short }}
${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:sha-${{ steps.sha.outputs.short }} cache-from: type=gha
cache-to: type=gha,mode=max
platforms: linux/amd64
- name: 🚀 Build and push picoclaw-whatsapp image
uses: docker/build-push-action@v7
with:
context: .
file: docker/Dockerfile
push: true
build-args: BUILD_TARGET=build-whatsapp-native-docker
tags: |
${{ env.REGISTRY }}/sushi30/picoclaw-whatsapp:latest
${{ env.REGISTRY }}/sushi30/picoclaw-whatsapp:sha-${{ steps.sha.outputs.short }}
cache-from: type=gha cache-from: type=gha
cache-to: type=gha,mode=max cache-to: type=gha,mode=max
platforms: linux/amd64 platforms: linux/amd64