File tree Expand file tree Collapse file tree 1 file changed +0
-9
lines changed Expand file tree Collapse file tree 1 file changed +0
-9
lines changed Original file line number Diff line number Diff line change 64
64
subject-digest : ${{ steps.push.outputs.digest }}
65
65
push-to-registry : true
66
66
67
- - name : Restart service
68
- run : |
69
- wget https://github.com/cloudflare/cloudflared/releases/latest/download/cloudflared-linux-amd64 -O /usr/local/bin/cloudflared &&
70
- chmod +x /usr/local/bin/cloudflared &&
71
- mkdir ~/.ssh/ &&
72
- echo "${{ secrets.GIT_PRIVATE_KEY }}" > ~/.ssh/id_ed25519 &&
73
- chmod 600 ~/.ssh/id_ed25519 &&
74
- ssh -o "StrictHostKeyChecking no" -o ProxyCommand="/usr/local/bin/cloudflared access ssh --hostname %h" -i ~/.ssh/id_ed25519 ${{ secrets.GIT_USERNAME }}@${{ secrets.GIT_REMOTE_HOST }} sudo systemctl restart ${{ secrets.GIT_REMOTE_SERVICE }}
75
-
76
67
- name : Push changes
77
68
run : |
78
69
wget https://github.com/cloudflare/cloudflared/releases/latest/download/cloudflared-linux-amd64 -O /usr/local/bin/cloudflared &&
You can’t perform that action at this time.
0 commit comments