|
|
@ -12,18 +12,31 @@ jobs:
|
|
|
|
run: |
|
|
|
|
run: |
|
|
|
|
curl -L "https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_extended_${HUGO_VERSION}_Linux-64bit.tar.gz" --output hugo.tar.gz
|
|
|
|
curl -L "https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_extended_${HUGO_VERSION}_Linux-64bit.tar.gz" --output hugo.tar.gz
|
|
|
|
tar -xvzf hugo.tar.gz
|
|
|
|
tar -xvzf hugo.tar.gz
|
|
|
|
mv hugo /usr/local/bin
|
|
|
|
mv hugo /usr/local/bin
|
|
|
|
|
|
|
|
- name: Add SSH key
|
|
|
|
|
|
|
|
env:
|
|
|
|
|
|
|
|
SSH_AUTH_SOCK: /tmp/ssh_agent.sock
|
|
|
|
|
|
|
|
run: |
|
|
|
|
|
|
|
|
mkdir -p /home/runner/.ssh
|
|
|
|
|
|
|
|
# Replace example.com with the hostname of the machine
|
|
|
|
|
|
|
|
# you're SSH-ing into
|
|
|
|
|
|
|
|
ssh-keyscan robertops.com >> /home/runner/.ssh/known_hosts
|
|
|
|
|
|
|
|
# DOKKU_SSH_KEY is the name of the repository secret
|
|
|
|
|
|
|
|
echo "${{ secrets.CLAVE_SSH }}" > /home/runner/.ssh/github_actions
|
|
|
|
|
|
|
|
chmod 600 /home/runner/.ssh/github_actions
|
|
|
|
|
|
|
|
ssh-agent -a $SSH_AUTH_SOCK > /dev/null
|
|
|
|
|
|
|
|
ssh-add /home/runner/.ssh/github_actions
|
|
|
|
- shell: bash
|
|
|
|
- shell: bash
|
|
|
|
env:
|
|
|
|
env:
|
|
|
|
clave_ssh: ${{ secrets.CLAVE_SSH }}
|
|
|
|
clave_ssh: ${{ secrets.CLAVE_SSH }}
|
|
|
|
contra: ${{ secrets.CONTRA }}
|
|
|
|
contra: ${{ secrets.CONTRA }}
|
|
|
|
run: |
|
|
|
|
run: |
|
|
|
|
eval $(ssh-agent)
|
|
|
|
eval $(ssh-agent)
|
|
|
|
ssh-add - <<< "$clave_ssh"
|
|
|
|
#ssh-add - <<< "$clave_ssh"
|
|
|
|
#./subir.sh
|
|
|
|
#./subir.sh
|
|
|
|
#hugo
|
|
|
|
#hugo
|
|
|
|
echo -e $clave_ssh > clave_ssh
|
|
|
|
#echo -e $clave_ssh > clave_ssh
|
|
|
|
chmod 600 clave_ssh
|
|
|
|
#chmod 600 clave_ssh
|
|
|
|
ssh calcetines@nodriza.robertops.com 'echo "FUNCIONA"'
|
|
|
|
ssh calcetines@nodriza.robertops.com 'echo "FUNCIONA"'
|
|
|
|
#rsync -e "ssh -i clave_ssh" -azP public/* calcetines@nodriza.robertops.com:/home/calcetines/blog/
|
|
|
|
#rsync -e "ssh -i clave_ssh" -azP public/* calcetines@nodriza.robertops.com:/home/calcetines/blog/
|
|
|
|
|
|
|
|
|