I'm just trying various things to see how ssh auth works in this env
All checks were successful
Build & Deploy / build-or-sth (push) Successful in 33s
All checks were successful
Build & Deploy / build-or-sth (push) Successful in 33s
This commit is contained in:
parent
3297ce3d02
commit
b00d3f7d04
@ -15,12 +15,14 @@ jobs:
|
|||||||
- name: Get hugo
|
- name: Get hugo
|
||||||
run: wget https://github.com/gohugoio/hugo/releases/download/v0.131.0/hugo_extended_0.131.0_linux-amd64.tar.gz -O hugo.tar.gz
|
run: wget https://github.com/gohugoio/hugo/releases/download/v0.131.0/hugo_extended_0.131.0_linux-amd64.tar.gz -O hugo.tar.gz
|
||||||
- run: tar xzvf hugo.tar.gz
|
- run: tar xzvf hugo.tar.gz
|
||||||
- run: pwd
|
- run: id
|
||||||
- run: ls -la
|
- run: ls -la ~/
|
||||||
- name: build
|
- name: build
|
||||||
run: ./hugo
|
run: ./hugo
|
||||||
- name: deploy
|
- name: deploy
|
||||||
run: |
|
run: |
|
||||||
echo "${{ secrets.SSH_KEY }}" > /tmp/id
|
echo "${{ secrets.SSH_KEY }}" > /tmp/id
|
||||||
chmod 600 /tmp/id
|
chmod 600 /tmp/id
|
||||||
scp -oUser=${{secrets.SSH_USER}} -i /tmp/id -r public/* emin.software:/home/${{ secrets.SSH_USER }}/web/web/
|
mkdir -p ~/.ssh/
|
||||||
|
ssh-keyscan emin.software > ~/.ssh/known_hosts
|
||||||
|
scp -oUser=${{secrets.SSH_USER}} -i /tmp/id -r public/* emin.software:/home/${{ secrets.SSH_USER }}/web/web/
|
||||||
|
Loading…
Reference in New Issue
Block a user