diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml index e3275f4..19aa5bc 100644 --- a/.gitea/workflows/deploy.yml +++ b/.gitea/workflows/deploy.yml @@ -113,7 +113,13 @@ jobs: echo "$REGISTRY_PASSWORD" | docker login "$REGISTRY_URL" -u "$REGISTRY_USERNAME" --password-stdin for svc in backend frontend; do img="$REGISTRY_URL/mangalord-$svc" - docker build -t "$img:$IMAGE_TAG" -t "$img:latest" -t "$img:$VERSION" "./$svc" + # The backend bundles Debian's headless chromium for the crawler: + # chromiumoxide's fetcher has no arm64 build, so the Pi must use a + # system binary (pair with the runtime env + # CRAWLER_CHROMIUM_BINARY=/usr/bin/chromium-headless-shell). + build_args="" + if [ "$svc" = "backend" ]; then build_args="--build-arg INSTALL_CHROMIUM=true"; fi + docker build $build_args -t "$img:$IMAGE_TAG" -t "$img:latest" -t "$img:$VERSION" "./$svc" for tag in "$IMAGE_TAG" latest "$VERSION"; do docker push "$img:$tag"; done done docker logout "$REGISTRY_URL"