mirror of
https://github.com/redhat-actions/push-to-registry.git
synced 2025-02-22 10:11:21 +01:00
Fix registry-path not having tag with it (#41)
Signed-off-by: divyansh42 <diagrawa@redhat.com>
This commit is contained in:
parent
5ec72be08b
commit
420cb7c68b
3 changed files with 6 additions and 5 deletions
2
dist/index.js
vendored
2
dist/index.js
vendored
File diff suppressed because one or more lines are too long
2
dist/index.js.map
vendored
2
dist/index.js.map
vendored
File diff suppressed because one or more lines are too long
|
@ -195,13 +195,14 @@ async function run(): Promise<void> {
|
|||
// push the image
|
||||
for (const tag of tagsList) {
|
||||
const imageWithTag = `${imageToPush}:${tag}`;
|
||||
const registryPathWithTag = `${registryPath}:${tag}`;
|
||||
const args = [
|
||||
"push",
|
||||
"--quiet",
|
||||
"--digestfile",
|
||||
digestFile,
|
||||
imageWithTag,
|
||||
`${registryPath}:${tag}`,
|
||||
registryPathWithTag,
|
||||
];
|
||||
|
||||
if (podmanExtraArgs.length > 0) {
|
||||
|
@ -219,9 +220,9 @@ async function run(): Promise<void> {
|
|||
}
|
||||
|
||||
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 {
|
||||
const digest = (await fs.promises.readFile(digestFile)).toString();
|
||||
|
|
Loading…
Add table
Reference in a new issue