forgot that gh actions doesn't allow this

This commit is contained in:
Ell 2024-01-13 17:01:07 +01:00
parent d7bca50207
commit 908843b84a

View file

@ -19,11 +19,11 @@ jobs:
run: cd web && bundle exec jekyll build run: cd web && bundle exec jekyll build
# this is a beautiful way to deploy a website and i will not take any criticism # this is a beautiful way to deploy a website and i will not take any criticism
- name: Setup cloudflared
run: |
curl -L --output cloudflared.deb https://github.com/cloudflare/cloudflared/releases/latest/download/cloudflared-linux-amd64.deb && sudo dpkg -i cloudflared.deb
nohup cloudflared access ssh --hostname ssh.ellpeck.de --listener localhost:222 &
- name: Deploy - name: Deploy
run: | run: |
echo "${{ secrets.ELLBOT_KEY }}" > ~/.ssh/id_rsa && chmod 600 ~/.ssh/id_rsa curl -L --output cloudflared.deb https://github.com/cloudflare/cloudflared/releases/latest/download/cloudflared-linux-amd64.deb && sudo dpkg -i cloudflared.deb
rsync -e "ssh -o StrictHostKeyChecking=no -P 222" -r --delete web/_site/. ellbot@localhost:/var/www/tinylifegame echo "Host *
StrictHostKeyChecking no
ProxyCommand cloudflared access ssh --hostname %h" >> ~/.ssh/config
echo "${{ secrets.ELLBOT_KEY }}" >> ~/.ssh/id_rsa && chmod 600 ~/.ssh/id_rsa
rsync -e "ssh -o StrictHostKeyChecking=no -P 222" -r --delete web/_site/. ellbot@ssh.ellpeck.de:/var/www/tinylifegame