fix(repo): pass env vars into docker builds in publish workflow#35060
fix(repo): pass env vars into docker builds in publish workflow#35060FrozenPandaz merged 5 commits intomasterfrom
Conversation
✅ Deploy Preview for nx-docs ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
✅ Deploy Preview for nx-dev ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
|
View your CI Pipeline Execution ↗ for commit c36d135
☁️ Nx Cloud last updated this comment at |
c65c27a to
ff61731
Compare
ff61731 to
4729f36
Compare
…Healing CI Rerun]
…Healing CI Rerun]
There was a problem hiding this comment.
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.
🔔 Heads up, your workspace has pending recommendations ↗ to auto-apply fixes for similar failures.
🎓 Learn more about Self-Healing CI on nx.dev
## 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
## 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)
|
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. |
Current Behavior
The
publish.ymlworkflow definesNX_GRADLE_PROJECT_GRAPH_TIMEOUTandNX_VERBOSE_LOGGINGas workflow-level env vars, but thedocker runcommand 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_TIMEOUTandNX_VERBOSE_LOGGINGare passed into the Docker containers via-eflags so they take effect during Linux native builds.Related Issue(s)
N/A