fix: publish-hostless workflow picks wrong container image from ECS#207
Merged
fix: publish-hostless workflow picks wrong container image from ECS#207
Conversation
The workflow used containerDefinitions[0] to get the deployed WAB image, but index 0 is the Fluent Bit log-router sidecar, not the WAB container. This caused the publish-hostless Docker image to be built on top of the Fluent Bit image (which has no node binary), resulting in exit code 127: "node: command not found". Fix: query by container name 'wab' instead of array index. Verified by pulling both images locally: - WAB image: /usr/local/bin/node exists (125MB, v24.14.1) - publish-hostless image: node binary completely missing (built on Fluent Bit base instead of WAB base)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
The "Publish Hostless Packages" GitHub Actions workflow fails with exit code 127:
node: command not found.This has been broken since March 2026. Last successful run was February 19, 2026.
Root Cause
The workflow queries the deployed ECS task definition to find the WAB container image:
But
containerDefinitions[0]is the Fluent Bit log-router sidecar (amazon/aws-for-fluent-bit:stable), not the WAB container. The task definition has 3 containers:The
Dockerfile.publish-hostlessthen builds on top of the Fluent Bit image (which has nonodebinary) instead of the WAB image, causingnode: command not found.Verified locally
Fix
Query by container name instead of array index:
Why it worked in February
Before Datadog sidecar containers were added to the WAB task definition,
containerDefinitions[0]was the WAB container. When sidecars (Fluent Bit, Datadog) were added, WAB shifted to index 1 but this query was not updated.