add key to known hosts
release-tag / release-image (push) Failing after 9s

This commit is contained in:
2024-05-09 10:02:40 +02:00
parent 8616934845
commit e00a530236
+2
View File
@@ -31,9 +31,11 @@ jobs:
shell: bash shell: bash
run: | run: |
echo "${{ secrets.RUNNER_SSH_PRIVATE_KEY }}" > ~/.ssh/id_ed25519 echo "${{ secrets.RUNNER_SSH_PRIVATE_KEY }}" > ~/.ssh/id_ed25519
echo "{{ secrets.INSTANCE_SSH_PUBLIC_KEY }} > ~/.ssh/known_hosts"
- name: git lfs pull - name: git lfs pull
shell: bash shell: bash
run: | run: |
ssh-keyscan ${{ env.ENDPOINT }} >> ~/.ssh/known_hosts
git remote set-url origin git@${{ env.ENDPOINT }}:${{ env.DOCKER_ORG }}/${{ steps.meta.outputs.REPO_NAME }}.git git remote set-url origin git@${{ env.ENDPOINT }}:${{ env.DOCKER_ORG }}/${{ steps.meta.outputs.REPO_NAME }}.git
git lfs pull git lfs pull