Compare commits

...

2 Commits

Author SHA1 Message Date
9d6cb8d126
add logging 2023-08-18 20:31:02 -07:00
6fdb91d3ca
add logging 2023-08-18 20:30:38 -07:00
3 changed files with 7 additions and 1 deletions

3
dist/index.js vendored
View File

@ -2869,6 +2869,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);
@ -2878,6 +2880,7 @@ async function main() {
}
catch (error) {
console.error(error);
core.setFailed(error.message);
}
}

2
dist/index.js.map vendored

File diff suppressed because one or more lines are too long

View File

@ -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);
}
}