Skip to content

Commit c90e77b

Browse files
committed
use lowercase for docker build
1 parent 76d641b commit c90e77b

File tree

2 files changed

+15
-6
lines changed

2 files changed

+15
-6
lines changed

.github/workflows/docker-eventage-claw.yml

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,20 @@ on:
1111

1212
env:
1313
REGISTRY: ghcr.io
14-
CLAW_IMAGE: ghcr.io/${{ github.repository_owner }}/eventage-claw
15-
BRIDGE_IMAGE: ghcr.io/${{ github.repository_owner }}/eventage-claw-bridge
1614

1715
jobs:
16+
prepare:
17+
runs-on: ubuntu-latest
18+
outputs:
19+
claw_image: ghcr.io/${{ steps.lower.outputs.owner }}/eventage-claw
20+
bridge_image: ghcr.io/${{ steps.lower.outputs.owner }}/eventage-claw-bridge
21+
steps:
22+
- id: lower
23+
run: echo "owner=$(echo '${{ github.repository_owner }}' | tr '[:upper:]' '[:lower:]')" >> $GITHUB_OUTPUT
24+
1825
build-claw:
1926
name: Build claw (Rust)
27+
needs: prepare
2028
runs-on: ubuntu-latest
2129
permissions:
2230
contents: read
@@ -40,12 +48,13 @@ jobs:
4048
context: .
4149
file: crates/example-eventage-claw/Dockerfile
4250
push: true
43-
tags: ${{ env.CLAW_IMAGE }}:latest,${{ env.CLAW_IMAGE }}:${{ github.sha }}
51+
tags: ${{ needs.prepare.outputs.claw_image }}:latest,${{ needs.prepare.outputs.claw_image }}:${{ github.sha }}
4452
cache-from: type=gha
4553
cache-to: type=gha,mode=max
4654

4755
build-bridge:
4856
name: Build whatsapp-bridge (Node)
57+
needs: prepare
4958
runs-on: ubuntu-latest
5059
permissions:
5160
contents: read
@@ -69,6 +78,6 @@ jobs:
6978
context: crates/example-eventage-claw/whatsapp-bridge
7079
file: crates/example-eventage-claw/whatsapp-bridge/Dockerfile
7180
push: true
72-
tags: ${{ env.BRIDGE_IMAGE }}:latest,${{ env.BRIDGE_IMAGE }}:${{ github.sha }}
81+
tags: ${{ needs.prepare.outputs.bridge_image }}:latest,${{ needs.prepare.outputs.bridge_image }}:${{ github.sha }}
7382
cache-from: type=gha
7483
cache-to: type=gha,mode=max

crates/example-eventage-claw/docker-compose.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ services:
22

33
# ── eventage-claw (Rust AI agent, HTTP channel) ────────────────────────────
44
claw:
5-
image: ${CLAW_IMAGE:-ghcr.io/dwzhangdavid/eventage-claw:latest}
5+
image: ${CLAW_IMAGE:-ghcr.io/onthethirdday/eventage-claw:latest}
66
build:
77
# Build context is the workspace root so cargo can see all crates.
88
context: ../..
@@ -28,7 +28,7 @@ services:
2828
# Optional: only needed for WhatsApp connectivity.
2929
# Comment this service out if using claw's HTTP channel directly.
3030
whatsapp-bridge:
31-
image: ${BRIDGE_IMAGE:-ghcr.io/dwzhangdavid/eventage-claw-bridge:latest}
31+
image: ${BRIDGE_IMAGE:-ghcr.io/onthethirdday/eventage-claw-bridge:latest}
3232
build:
3333
context: whatsapp-bridge
3434
dockerfile: Dockerfile

0 commit comments

Comments
 (0)