mirror of
https://github.com/redhat-actions/push-to-registry.git
synced 2025-02-22 18:21:20 +01:00
Exclude more characters from digestfile name
Signed-off-by: Tim Etchells <tetchell@redhat.com>
This commit is contained in:
parent
2d063fde99
commit
b038efb70a
3 changed files with 6 additions and 3 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
|
@ -44,7 +44,10 @@ export async function run(): Promise<void> {
|
||||||
|
|
||||||
const creds: string = `${username}:${password}`;
|
const creds: string = `${username}:${password}`;
|
||||||
|
|
||||||
const digestFile = digestFileInput || `${imageToPush.replace(":", "_")}_digest.txt`;
|
let digestFile = digestFileInput;
|
||||||
|
if (!digestFile) {
|
||||||
|
digestFile = `${imageToPush.replace(/[/\\/?%*:|"<>]/g, "-")}_digest.txt`;
|
||||||
|
}
|
||||||
|
|
||||||
const args = [ 'push',
|
const args = [ 'push',
|
||||||
'--quiet',
|
'--quiet',
|
||||||
|
|
Loading…
Add table
Reference in a new issue