1
0

ci: fix registry auth
Some checks failed
ci/woodpecker/push/build Pipeline failed

This commit is contained in:
Konstantin Demin 2024-05-28 11:11:02 +03:00
parent ead99ae821
commit f9c06cd563
Signed by: krd
GPG Key ID: 4D56F87A8BA65FD0

View File

@ -5,8 +5,17 @@ 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
skopeo login "$i" </dev/null
"${_bin}" login "$i" </dev/null
done