mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
Push the image with tag (#6504)
This commit is contained in:
@@ -51,9 +51,9 @@ function tagImagePerform(args: PublishArgs, tagImage: string, newTag: string) {
|
||||
logger.info(response);
|
||||
}
|
||||
|
||||
function pushImagePerform(args: PublishArgs) {
|
||||
logger.info(`Perform docker push... ${args.dockerRepo} --all-tags`);
|
||||
const response = exec('docker', ['push', `${args.dockerRepo}`, `--all-tags`], {});
|
||||
function pushImagePerform(args: PublishArgs, tag: string) {
|
||||
logger.info(`Perform docker push... ${args.dockerRepo}:${tag}`);
|
||||
const response = exec('docker', ['push', `${args.dockerRepo}:${tag}`], {});
|
||||
logger.info(response);
|
||||
}
|
||||
|
||||
@@ -102,10 +102,9 @@ function main(args) {
|
||||
buildImagePerform(args, mainTag);
|
||||
}
|
||||
tagImagePerform(args, mainTag, tag);
|
||||
logger.info(`tag:${tag} done`);
|
||||
pushImagePerform(args, tag);
|
||||
}
|
||||
});
|
||||
pushImagePerform(args);
|
||||
logger.info(`Clean the image with tag:${mainTag} ...`);
|
||||
cleanImagePerform(args, mainTag);
|
||||
} else {
|
||||
|
Reference in New Issue
Block a user