mirror of
https://code.thetadev.de/actions/kaniko.git
synced 2026-04-28 17:11:44 +00:00
fix crane registry url
This commit is contained in:
@@ -2,9 +2,6 @@
|
||||
set -e pipefail
|
||||
|
||||
if [ "$INPUT_DEBUG" = "true" ]; then
|
||||
echo "environment:"
|
||||
printenv
|
||||
echo ""
|
||||
set -x
|
||||
fi
|
||||
|
||||
@@ -55,8 +52,9 @@ if [ "$REGISTRY" = "ghcr.io" ]; then
|
||||
fi
|
||||
|
||||
if [ "$REGISTRY" = "docker.io" ]; then
|
||||
REGISTRY="index.${REGISTRY}/v1/"
|
||||
kanikoRegistry="index.docker.io/v1/"
|
||||
else
|
||||
kanikoRegistry="$REGISTRY"
|
||||
IMAGE="${REGISTRY}/${IMAGE}"
|
||||
|
||||
if [ -n "$IMAGE_LATEST" ]; then
|
||||
@@ -77,7 +75,7 @@ ARGS="$CACHE $CONTEXT $DOCKERFILE $TARGET $INPUT_EXTRA_ARGS"
|
||||
cat <<EOF >/kaniko/.docker/config.json
|
||||
{
|
||||
"auths": {
|
||||
"https://${REGISTRY}": {
|
||||
"https://${kanikoRegistry}": {
|
||||
"username": "${USERNAME}",
|
||||
"password": "${PASSWORD}"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user