1
0
woodpecker-sonatype-nexus/.ci/registry-login.sh
2024-05-28 14:46:02 +03:00

22 lines
338 B
Bash
Executable File

#!/bin/sh
# SPDX-License-Identifier: Apache-2.0
# (c) 2024, Konstantin Demin
set -ef
[ -z "${CI_DEBUG}" ] || set -xv
unset _bin
for i in podman buildah skopeo ; do
if command -V "$i" >/dev/null ; then
_bin=$i
break
fi
done
: "${_bin:?}"
. .ci/envsh.registry
for i ; do
"${_bin}" login "$i" </dev/null
done