(command, options = {})
| 33 | ); |
| 34 | } |
| 35 | |
| 36 | const imageName = 'printventory'; |
| 37 | // Short Docker Hub form (docker.io implied). Lowercase namespace avoids the client |
| 38 | // treating "Printventory/..." as a custom registry hostname. Do not prefix with |
| 39 | // registry-1.docker.io — that key does not match credentials from `docker login`. |
| 40 | const fullImageName = `${dockerHubUsername}/${imageName}`; |
| 41 | const versionTag = `${fullImageName}:${version}`; |
| 42 | const latestTag = `${fullImageName}:latest`; |
| 43 | |
| 44 | // Helper function to execute commands |
| 45 | function exec(command, options = {}) { |
| 46 | try { |
| 47 | execSync(command, { stdio: 'inherit', ...options }); |
no outgoing calls
no test coverage detected