Dockerfile. The command logs in once with your saved credentials, then for each target builds the image with docker build and pushes it with docker push, tagged <username>/<name>:<tag>. Targets without a Dockerfile are skipped.
Publishing requires Docker credentials saved with docker:credentials:create.
Usage
Examples
Build and push every package and module that has aDockerfile:
package.json version, else latest):
Options
| Option | Description | Default |
|---|---|---|
--packages | Comma-separated package names to publish (under packages/). | All packages and modules |
--modules | Comma-separated module names to publish (under modules/). | All packages and modules |
--tag | Image tag to build and push. | package.json version, else latest |
--silent | Suppress log output and the publishing spinner. | false |
--packages nor --modules, every directory under packages/ and modules/ is treated as a candidate. Only those that ship a Dockerfile are built: a discovered target without one is reported as ignored, while an explicitly named target without one is an error. For any registry other than docker.io, the image reference is prefixed with the registry host (for example ghcr.io/ooneex/gateway:1.2.0). At the end the command prints a summary of how many targets were published versus ignored.
See Publish to Docker Hub for the full workflow, including CI setup.