updated entrypoint
All checks were successful
Gitea/docker-base-images/jenkins-ssh-agent-jdk17-dind/pipeline/head This commit looks good
All checks were successful
Gitea/docker-base-images/jenkins-ssh-agent-jdk17-dind/pipeline/head This commit looks good
This commit is contained in:
parent
44c51a62e5
commit
e260864a84
@ -46,8 +46,8 @@ write_key() {
|
|||||||
|
|
||||||
mkdir -p "/root/.ssh"
|
mkdir -p "/root/.ssh"
|
||||||
echo "$1" > "/root/.ssh/authorized_keys"
|
echo "$1" > "/root/.ssh/authorized_keys"
|
||||||
chown -Rf "root /root/.ssh"
|
chown -Rf root /root/.ssh
|
||||||
chmod 0700 -R "/root/.ssh"
|
chmod 0700 -R /root/.ssh
|
||||||
}
|
}
|
||||||
|
|
||||||
if [[ ${JENKINS_AGENT_SSH_PUBKEY} == ssh-* ]]; then
|
if [[ ${JENKINS_AGENT_SSH_PUBKEY} == ssh-* ]]; then
|
||||||
|
Loading…
Reference in New Issue
Block a user