Update .gitea/workflows/deploy-new.yml
This commit is contained in:
@@ -15,7 +15,7 @@ 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
|
||||||
host: 127.0.0.1
|
host: 172.17.0.1
|
||||||
user: root
|
user: root
|
||||||
key: ${{ secrets.SSH_PRIVATE_KEY }}
|
key: ${{ secrets.SSH_PRIVATE_KEY }}
|
||||||
|
|
||||||
@@ -27,7 +27,7 @@ jobs:
|
|||||||
uses: https://github.com/wlixcc/SFTP-Deploy-Action@v1.2.1
|
uses: https://github.com/wlixcc/SFTP-Deploy-Action@v1.2.1
|
||||||
with:
|
with:
|
||||||
username: root
|
username: root
|
||||||
server: 127.0.0.1
|
server: 172.17.0.1
|
||||||
port: 22
|
port: 22
|
||||||
ssh_private_key: ${{ secrets.SSH_PRIVATE_KEY }}
|
ssh_private_key: ${{ secrets.SSH_PRIVATE_KEY }}
|
||||||
# clones entire github repo
|
# clones entire github repo
|
||||||
@@ -53,7 +53,7 @@ jobs:
|
|||||||
touch token.0
|
touch token.0
|
||||||
echo ${{ env.BOT_TOKEN }} > token.0
|
echo ${{ env.BOT_TOKEN }} > token.0
|
||||||
echo $?
|
echo $?
|
||||||
host: 127.0.0.1
|
host: 172.17.0.1
|
||||||
user: root
|
user: root
|
||||||
key: ${{ secrets.SSH_PRIVATE_KEY }}
|
key: ${{ secrets.SSH_PRIVATE_KEY }}
|
||||||
|
|
||||||
@@ -105,6 +105,6 @@ jobs:
|
|||||||
sudo systemctl enable ${{ env.REPO_NAME }}-watcher.service
|
sudo systemctl enable ${{ env.REPO_NAME }}-watcher.service
|
||||||
sudo systemctl daemon-reload
|
sudo systemctl daemon-reload
|
||||||
sudo systemctl start ${{ env.REPO_NAME }}-watcher.service
|
sudo systemctl start ${{ env.REPO_NAME }}-watcher.service
|
||||||
host: 127.0.0.1
|
host: 172.17.0.1
|
||||||
user: root
|
user: root
|
||||||
key: ${{ secrets.SSH_PRIVATE_KEY }}
|
key: ${{ secrets.SSH_PRIVATE_KEY }}
|
||||||
Reference in New Issue
Block a user