Skip to content

Commit d14b3b6

Browse files
Fix ssh key path
1 parent 15915aa commit d14b3b6

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

.github/workflows/restore.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,8 +106,17 @@ jobs:
106106
--rm \
107107
backup-utils ghe-restore ${{ inputs.hostname }}
108108
109+
# - name: Reset SSH key
110+
# run: ssh-keygen -f "/home/runner/.ssh/known_hosts" -R "${{ inputs.hostname }}:122
111+
112+
# - name: set up ssh SSH_KEY
113+
# run: echo -e "${SSH_KEY}\n" > "$HOME/backup"
114+
115+
# - name: set up ssh key permissions
116+
# run: chmod 0600 "$HOME/backup"
117+
109118
- name: Reset maintenance mode after restore
110-
run: ssh -p122 -i" $HOME/backup" -o StrictHostKeyChecking=no admin@${{ inputs.hostname }} "ghe-maintenance -u"
119+
run: ssh -p122 -i "$HOME/backup" -o StrictHostKeyChecking=no admin@${{ inputs.hostname }} "ghe-maintenance -u"
111120

112121

113122

0 commit comments

Comments
 (0)