add logging
This commit is contained in:
parent
1ed940d054
commit
6fdb91d3ca
3
index.js
3
index.js
@ -16,6 +16,8 @@ async function main() {
|
||||
new_tags: core.getInput('new-tags').trim().split('\n'),
|
||||
};
|
||||
|
||||
console.log('Tagging %s:%s with new tags', input.image, input.old_tag, input);
|
||||
|
||||
const manifest = await get_manifest(`${input.registry}/v2/${input.image}/manifests/${input.old_tag}`);
|
||||
const promises = input.new_tags.map((new_tag) => {
|
||||
return put_manifest(`${input.registry}/v2/${input.image}/manifests/${new_tag}`, manifest);
|
||||
@ -25,6 +27,7 @@ async function main() {
|
||||
}
|
||||
|
||||
catch (error) {
|
||||
console.error(error);
|
||||
core.setFailed(error.message);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user