mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
adf-cli Provide a way to pass buildArgs to the docker build (#5507)
* Provide a way to pass buildArgs to the docker build * Create folder in case does not exist
This commit is contained in:
@@ -28,6 +28,7 @@ export interface PublishArgs {
|
||||
loginPassword?: string;
|
||||
loginRepo?: string;
|
||||
dockerRepo?: string;
|
||||
buildArgs?: string;
|
||||
dockerTags?: string;
|
||||
pathProject: string;
|
||||
}
|
||||
@@ -40,7 +41,7 @@ function loginPerform(args: PublishArgs) {
|
||||
|
||||
function buildImagePerform(args: PublishArgs, tag: string) {
|
||||
logger.info(`Perform docker build...${args.dockerRepo}:${tag}`);
|
||||
const response = exec('docker', ['build', `-t=${args.dockerRepo}:${tag}`, args.pathProject], {});
|
||||
const response = exec('docker', ['build', `-t=${args.dockerRepo}:${tag}`, `--build-arg=${args.buildArgs}`, args.pathProject], {});
|
||||
logger.info(response);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user