File tree Expand file tree Collapse file tree 1 file changed +28
-0
lines changed Expand file tree Collapse file tree 1 file changed +28
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Deploy Action
2
+ on :
3
+ push :
4
+ branches :
5
+ - ' main'
6
+ paths :
7
+ - ' stiller-backend/docs/*'
8
+ jobs :
9
+ deploy :
10
+ runs-on : ubuntu-latest
11
+ steps :
12
+ - name : system deps
13
+ run : |
14
+ sudo apt install --upgrade -y openssh-client openssh-known-hosts openssh-server
15
+ - name : ssh setup
16
+ run : |
17
+ mkdir -p ~/.ssh/
18
+ chmod 700 ~/.ssh/
19
+ eval "$(ssh-agent -s)"
20
+ echo "${{ secrets.SSH_PRIVKEY }}" | tr -d '\r' > ~/.ssh/id_rsa
21
+ echo "${{ secrets.SSH_PUBKEY }}" | tr -d '\r' > ~/.ssh/id_rsa.pub
22
+ chmod 600 ~/.ssh/id_rsa
23
+ chmod 600 ~/.ssh/id_rsa.pub
24
+ ssh-add -vvv
25
+ ls ~/.ssh/
26
+ ssh-keyscan -H "${{ secrets.SSH_IP }}" >> ~/.ssh/known_hosts
27
+ - name : deploy
28
+ run : ssh -vT "bauer@${{ secrets.SSH_IP }}" "cd ~/clones/metagallery/stiller-backend && git pull"
You can’t perform that action at this time.
0 commit comments