Update .gitea/workflows/deploy-new.yml

This commit is contained in:
binlab
2023-09-22 23:14:06 +00:00
parent 392aa8afba
commit cdadb439d6

View File

@@ -15,10 +15,13 @@ jobs:
# install the libraries required for your bot # install the libraries required for your bot
command: | command: |
pip install -r requirements.txt pip install -r requirements.txt
echo ${{secrets.SSH_PRIVATE_KEY}} mkdir /root/.ssh
touch /root/.ssh/id_rsa.pub
echo ${{secrets.SSH_PRIVATE_KEY}} > /root/.ssh/id_rsa.pub
chmod 700 /root/.ssh
chmod 644 /root/.ssh/id_rsa.pub
host: 172.17.0.1 host: 172.17.0.1
user: root user: root
key: ${{ secrets.SSH_PRIVATE_KEY }}
deploy-via-sftp: deploy-via-sftp:
runs-on: ubuntu-latest runs-on: ubuntu-latest