This commit is contained in:
parent
430dc07b73
commit
2ea0cb56ed
@ -28,14 +28,14 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
mkdir -p ~/.ssh
|
mkdir -p ~/.ssh
|
||||||
echo "${{ secrets.SSH_KNOWN_HOSTS }}" >> ~/.ssh/known_hosts
|
echo "${{ secrets.SSH_KNOWN_HOSTS }}" >> ~/.ssh/known_hosts
|
||||||
chmod 644 ~/.ssh/known_hosts
|
chmod 600 ~/.ssh/known_hosts
|
||||||
eval $(ssh-agent -s)
|
eval $(ssh-agent -s)
|
||||||
ssh-add <(echo "${{ secrets.SSH_PRIVATE_KEY }}")
|
ssh-add <(echo "${{ secrets.SSH_PRIVATE_KEY }}")
|
||||||
echo "HOST *" > ~/.ssh/config
|
echo "HOST *" > ~/.ssh/config
|
||||||
echo "StrictHostKeyChecking no" >> ~/.ssh/config
|
echo "StrictHostKeyChecking no" >> ~/.ssh/config
|
||||||
echo "${{ secrets.ANSIBLE_VAULT_PASSWORD }}" > ~/.vault_password.txt
|
echo "${{ secrets.ANSIBLE_VAULT_PASSWORD }}" > ~/.vault_password.txt
|
||||||
echo "nameserver 10.10.10.1" > /etc/resolv.conf
|
echo "nameserver 10.10.10.1" > /etc/resolv.conf
|
||||||
ssh-add -L
|
cat ~/.ssh/known_hosts
|
||||||
# ./.gitea/workflows/deploy.sh "${{ github.event.before }}" "${{ github.sha }}"
|
# ./.gitea/workflows/deploy.sh "${{ github.event.before }}" "${{ github.sha }}"
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user