Fix registry-path not having tag with it (#41)

Signed-off-by: divyansh42 <diagrawa@redhat.com>
This commit is contained in:
Divyanshu Agrawal 2021-04-24 00:29:34 +05:30 committed by GitHub
parent 5ec72be08b
commit 420cb7c68b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 5 deletions

2
dist/index.js vendored

File diff suppressed because one or more lines are too long

2
dist/index.js.map vendored

File diff suppressed because one or more lines are too long

View file

@ -195,13 +195,14 @@ async function run(): Promise<void> {
// push the image // push the image
for (const tag of tagsList) { for (const tag of tagsList) {
const imageWithTag = `${imageToPush}:${tag}`; const imageWithTag = `${imageToPush}:${tag}`;
const registryPathWithTag = `${registryPath}:${tag}`;
const args = [ const args = [
"push", "push",
"--quiet", "--quiet",
"--digestfile", "--digestfile",
digestFile, digestFile,
imageWithTag, imageWithTag,
`${registryPath}:${tag}`, registryPathWithTag,
]; ];
if (podmanExtraArgs.length > 0) { if (podmanExtraArgs.length > 0) {
@ -219,9 +220,9 @@ async function run(): Promise<void> {
} }
await execute(await getPodmanPath(), args); await execute(await getPodmanPath(), args);
core.info(`✅ Successfully pushed "${imageWithTag}" to "${registryPath}"`); core.info(`✅ Successfully pushed "${imageWithTag}" to "${registryPathWithTag}"`);
registryPathList.push(registryPath); registryPathList.push(registryPathWithTag);
try { try {
const digest = (await fs.promises.readFile(digestFile)).toString(); const digest = (await fs.promises.readFile(digestFile)).toString();