This commit is contained in:
병준 박 2025-04-14 22:29:30 +00:00
parent 4a7a687b97
commit dd8661a046
2 changed files with 4 additions and 13 deletions

View File

@ -75,18 +75,6 @@ spec:
}
}
EOF
cat <<EOF > /tekton/home/.netrc
machine nexus.unbox-x.net
login richard.bak
password "@Sunny5465"
EOF
mkdir -p /tekton/home/.config/pypoetry
cat <<EOF > /tekton/home/.config/pypoetry/auth.toml
[http-basic.unbox-x-group]
username = "richard.bak"
password = "@Sunny5465"
EOF
- name: kaniko-build
image: gcr.io/kaniko-project/executor:v1.23.2
@ -97,6 +85,9 @@ spec:
command:
- /kaniko/executor
args:
{{- range splitList " " .Params.kanikoArgs }}
- {{ . }}
{{- end }}
- --dockerfile=$(params.dockerfile)
- --context=$(params.context)
- --destination=$(params.imageName):$(params.tag)

View File

@ -98,7 +98,7 @@ spec:
fi
secretValue=$(cat "$secretKey")
KANIKO_ARGS="$KANIKO_ARGS $kanikoFlag $argumentKey=$secretValue"
KANIKO_ARGS="$KANIKO_ARGS $kanikoFlag=$argumentKey=$secretValue"
done
echo "✅ Final Kaniko args:"