ci: Build the Kafka native binding on the Docker image's Node version (#36306)

This commit is contained in:
Iván Ovejero
2026-08-14 11:36:28 +00:00
committed by GitHub
parent 7065e4edff
commit bb0aabb46b
3 changed files with 9 additions and 1 deletions
+3
View File
@@ -145,7 +145,10 @@ runs:
shell: bash
run: node .github/scripts/verify-safechain.mjs
# Confluent ships no Node 26 prebuilt and its vendored librdkafka cannot build
# inside node_modules: https://github.com/confluentinc/confluent-kafka-javascript/issues/397
- name: Skip Kafka native build (no Node 26 prebuilds)
if: ${{ startsWith(inputs.node-version, '26.') }}
shell: bash
run: |
node -e "
+3 -1
View File
@@ -149,6 +149,8 @@ jobs:
- name: Setup and Build
uses: ./.github/actions/setup-nodejs
with:
# The image copies native bindings from the host build, so both need the same Node.
node-version: ${{ env.NODE_VERSION }}
build-command: pnpm build:n8n
enable-docker-cache: 'true'
env:
@@ -175,7 +177,7 @@ jobs:
${{ needs.determine-build-context.outputs.push_to_docker == 'true' && '--include-docker' || '' }}
echo "=== Generated Docker Tags ==="
cat "$GITHUB_OUTPUT" | grep "_tags=" | while IFS='=' read -r key value; do
grep "_tags=" "$GITHUB_OUTPUT" | while IFS='=' read -r key value; do
echo "${key}: ${value%%,*}..." # Show first tag for brevity
done
+3
View File
@@ -44,6 +44,9 @@ jobs:
- name: Build full chain (no cache)
uses: ./.github/actions/setup-nodejs
with:
# Keep in sync with NODE_VERSION in docker/images/n8n/Dockerfile: the image
# copies native bindings from the host build.
node-version: '24.18.1'
build-command: 'pnpm build:docker:clean'
enable-docker-cache: true