Skip to content

fix(repo): pass env vars into docker builds in publish workflow#35060

Merged
FrozenPandaz merged 5 commits intomasterfrom
test-release
Mar 28, 2026
Merged

fix(repo): pass env vars into docker builds in publish workflow#35060
FrozenPandaz merged 5 commits intomasterfrom
test-release

Conversation

@FrozenPandaz
Copy link
Copy Markdown
Contributor

Current Behavior

The publish.yml workflow defines NX_GRADLE_PROJECT_GRAPH_TIMEOUT and NX_VERBOSE_LOGGING as workflow-level env vars, but the docker run command for Linux native builds only passes -e PNPM_VERSION. This means those env vars are not available inside the Docker containers, causing Gradle timeouts and missing verbose logs during publish.

Expected Behavior

NX_GRADLE_PROJECT_GRAPH_TIMEOUT and NX_VERBOSE_LOGGING are passed into the Docker containers via -e flags so they take effect during Linux native builds.

Related Issue(s)

N/A

@FrozenPandaz FrozenPandaz requested a review from a team as a code owner March 28, 2026 05:16
@FrozenPandaz FrozenPandaz requested a review from AgentEnder March 28, 2026 05:16
@netlify
Copy link
Copy Markdown

netlify bot commented Mar 28, 2026

Deploy Preview for nx-docs ready!

Name Link
🔨 Latest commit c36d135
🔍 Latest deploy log https://app.netlify.com/projects/nx-docs/deploys/69c7f7ca4ec7190008aaf721
😎 Deploy Preview https://deploy-preview-35060--nx-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@netlify
Copy link
Copy Markdown

netlify bot commented Mar 28, 2026

Deploy Preview for nx-dev ready!

Name Link
🔨 Latest commit c36d135
🔍 Latest deploy log https://app.netlify.com/projects/nx-dev/deploys/69c7f7ca16748600086bb200
😎 Deploy Preview https://deploy-preview-35060--nx-dev.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@nx-cloud
Copy link
Copy Markdown
Contributor

nx-cloud bot commented Mar 28, 2026

View your CI Pipeline Execution ↗ for commit c36d135

Command Status Duration Result
nx affected --targets=lint,test,build,e2e,e2e-c... ✅ Succeeded 12m 58s View ↗
nx run-many -t check-imports check-lock-files c... ✅ Succeeded 7s View ↗
nx-cloud record -- pnpm nx conformance:check ✅ Succeeded 7s View ↗
nx build workspace-plugin ✅ Succeeded <1s View ↗
nx-cloud record -- nx format:check ✅ Succeeded <1s View ↗
nx-cloud record -- nx sync:check ✅ Succeeded <1s View ↗

☁️ Nx Cloud last updated this comment at 2026-03-28 16:03:31 UTC

@FrozenPandaz FrozenPandaz enabled auto-merge (squash) March 28, 2026 13:57
@FrozenPandaz FrozenPandaz force-pushed the test-release branch 2 times, most recently from c65c27a to ff61731 Compare March 28, 2026 14:01
nx-cloud[bot]

This comment was marked as outdated.

Copy link
Copy Markdown
Contributor

@nx-cloud nx-cloud bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nx Cloud has identified a flaky task in your failed CI:

🔂 Since the failure was identified as flaky, we triggered a CI rerun by adding an empty commit to this branch.

Nx Cloud View detailed reasoning in Nx Cloud ↗

🔔 Heads up, your workspace has pending recommendations ↗ to auto-apply fixes for similar failures.


🎓 Learn more about Self-Healing CI on nx.dev

@FrozenPandaz FrozenPandaz merged commit 87a7c92 into master Mar 28, 2026
23 checks passed
@FrozenPandaz FrozenPandaz deleted the test-release branch March 28, 2026 16:04
FrozenPandaz added a commit that referenced this pull request Mar 30, 2026
## Current Behavior

The `publish.yml` workflow defines `NX_GRADLE_PROJECT_GRAPH_TIMEOUT` and
`NX_VERBOSE_LOGGING` as workflow-level env vars, but the `docker run`
command for Linux native builds only passes `-e PNPM_VERSION`. This
means those env vars are not available inside the Docker containers,
causing Gradle timeouts and missing verbose logs during publish.

## Expected Behavior

`NX_GRADLE_PROJECT_GRAPH_TIMEOUT` and `NX_VERBOSE_LOGGING` are passed
into the Docker containers via `-e` flags so they take effect during
Linux native builds.

## Related Issue(s)

N/A
FrozenPandaz added a commit that referenced this pull request Mar 31, 2026
## Current Behavior

The `publish.yml` workflow defines `NX_GRADLE_PROJECT_GRAPH_TIMEOUT` and
`NX_VERBOSE_LOGGING` as workflow-level env vars, but the `docker run`
command for Linux native builds only passes `-e PNPM_VERSION`. This
means those env vars are not available inside the Docker containers,
causing Gradle timeouts and missing verbose logs during publish.

## Expected Behavior

`NX_GRADLE_PROJECT_GRAPH_TIMEOUT` and `NX_VERBOSE_LOGGING` are passed
into the Docker containers via `-e` flags so they take effect during
Linux native builds.

## Related Issue(s)

N/A

(cherry picked from commit 87a7c92)
@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Apr 3, 2026

This pull request has already been merged/closed. If you experience issues related to these changes, please open a new issue referencing this pull request.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 3, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants