From eca678290ac4f28f610ef05570ac6df338839490 Mon Sep 17 00:00:00 2001 From: Jochen Sprickerhof Date: Fri, 23 Dec 2022 14:37:06 +0100 Subject: CI: Use local ssh key --- .gitlab-ci.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to '.gitlab-ci.yml') diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index b2ce36c..6c8dbc5 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -25,7 +25,7 @@ codespell: ts=$(sleepenh 0 || [ $? -eq 1 ]) for i in $(seq 30); do rv=0 - ssh $sshopt -o ConnectTimeout="$timeout" -i ~/.ssh/id -p 2222 root@localhost echo success || rv=$? + ssh $sshopt -o ConnectTimeout="$timeout" -i ssh_id -p 2222 root@localhost echo success || rv=$? test $rv -eq 0 && break ts=$(sleepenh "$ts" "$timeout" || [ $? -eq 1 ]); if test $i -eq 30; then @@ -33,7 +33,7 @@ codespell: exit 1 fi done - - ssh $sshopt -i ~/.ssh/id -p 2222 root@localhost poweroff + - ssh $sshopt -i ssh_id -p 2222 root@localhost poweroff release_test: extends: .test_script @@ -51,8 +51,8 @@ release_test: - apt-get update - apt-get dist-upgrade --yes - apt-get --no-install-recommends --yes install e2fsprogs genext2fs mmdebstrap openssh-client sleepenh qemu-kvm - - ssh-keygen -f ~/.ssh/id -N '' - - ./debvm-create -k ~/.ssh/id.pub -r "$RELEASE" + - ssh-keygen -f ssh_id -N '' + - ./debvm-create -k ssh_id.pub -r "$RELEASE" arch_test: extends: .test_script @@ -75,5 +75,5 @@ arch_test: - apt-get update - apt-get dist-upgrade --yes - apt-get --no-install-recommends --yes install e2fsprogs genext2fs mmdebstrap openssh-client sleepenh qemu-system binfmt-support arch-test qemu-user-static - - ssh-keygen -f ~/.ssh/id -N '' - - ./debvm-create -k ~/.ssh/id.pub -a $ARCHITECTURE + - ssh-keygen -f ssh_id -N '' + - ./debvm-create -k ssh_id.pub -a "$ARCHITECTURE" -- cgit v1.2.3