Don't override REGISTRY_AUTH_FILE if already set

This commit is contained in:
ver4a 2025-04-28 14:28:08 +02:00
parent 4934294ad0
commit df39e5a072
3 changed files with 5 additions and 2 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

@ -70,6 +70,9 @@ async function run(): Promise<void> {
if (authFilePath) {
podmanAuthFilePath = authFilePath;
}
else if (process.env.REGISTRY_AUTH_FILE) {
podmanAuthFilePath = process.env.REGISTRY_AUTH_FILE;
}
else {
// process.getuid might be undefined
let authFileDir = path.join("/", "tmp", `podman-run-${process.getuid ? process.getuid() : null}`);