feat(nx-docker): add labels options to docker build executor #33
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.
This pull request introduces several changes to the
nx-docker
package, specifically enhancing the Docker build executor by adding support for labels and updating the corresponding tests and schema. The most important changes include adding label arguments to the Docker build command, updating the executor tests to cover the new functionality, and modifying the schema to include labels.Enhancements to Docker build executor:
packages/nx-docker/src/executors/build/executor.ts
: Added support for Docker labels by introducinglabelsArgs
which are appended to the Docker build command if labels are provided. [1] [2]Updates to executor tests:
packages/nx-docker/src/executors/build/executor.spec.ts
: Added new tests to verify that Docker images are built with or without label arguments based on the provided options.packages/nx-docker/src/executors/build/executor.spec.ts
: Removed the unusedci
option from the default options in the test setup.Schema modifications:
packages/nx-docker/src/executors/build/schema.json
: Updated the schema to include thelabels
property, allowing users to specify labels for Docker images.