Ci : skip ssh setup

This commit is contained in:
2024-08-02 20:03:31 +02:00
parent bce8edc150
commit 92a9d52a8c
+2 -16
View File
@@ -20,24 +20,10 @@ jobs:
lfs: false lfs: false
persist-credentials: false persist-credentials: false
- name: Get Meta - name: LFS Checkout
id: meta
run: |
echo REPO_NAME=$(echo ${GITHUB_REPOSITORY} | awk -F"/" '{print $2}') >> $GITHUB_OUTPUT
echo REPO_VERSION=$(git describe --tags --always | sed 's/^v//') >> $GITHUB_OUTPUT
- name: setup private key
shell: bash shell: bash
run: | run: |
echo "${{ secrets.RUNNER_SSH_PRIVATE_KEY }}" > ~/.ssh/id_ed25519 git remote set-url origin https://${{ env.ENDPOINT }}/${{ env.REPO_NAME }}.git
chmod 400 ~/.ssh/id_ed25519
echo "{{ secrets.INSTANCE_SSH_PUBLIC_KEY }} > ~/.ssh/known_hosts"
- name: git lfs pull
shell: bash
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 lfs pull git lfs pull
- name: Login to DockerHub - name: Login to DockerHub