Nx Release Forces Docker Build/Publish When Using @nx/docker
#33377
patriklarssson
started this conversation in
Feature Requests
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Description
I'm using
nx releasetogether with@nx/dockerfor versioning and releasing my applications.However, I can’t figure out a clean way to use
nx releasewhen I have@nx/dockerinstalled — especially when I only want to create a tag and skip Docker-related steps.Currently, whenever I run a release, Nx automatically builds and publishes the Docker image to my registry, even if I only want to create a GitHub tag and skip the image publishing.
💡 Example Scenario
For example, I want to:
nx releaseto create a new version tag in GitHub.However, because
@nx/dockeris configured, Nx tries to build and publish the image regardless, which makes simple tag creation impossible without publishing artifacts.⚙️ Expected Behavior
I should be able to:
nx releasewith@nx/dockerinstalled.❌ Actual Behavior
When
@nx/dockeris installed, Nx release automatically triggers Docker build and publish actions, even if I only intend to tag a release.🧩 Possible Solutions / Suggestions
nx release, such as:Beta Was this translation helpful? Give feedback.
All reactions