probando probando
Some checks failed
Update Bot / restart-bot (push) Has been cancelled
Update Bot / deploy-via-sftp (push) Has been cancelled

This commit is contained in:
2025-10-24 16:15:23 +00:00
parent afcb257671
commit c99495c113

View File

@@ -14,10 +14,9 @@ jobs:
# install the libraries required for your bot
command: |
pip install -r requirements.txt
sudo apt install sshpass
host: 172.17.0.1
user: root
pass: ${{ secrets.SSH_PRIVATE_KEY }}
user: binlab
key: ${{ secrets.SSH_PRIVATE_KEY }}
args: '-vvv'
@@ -28,15 +27,14 @@ jobs:
- id: SFTPDeploy
uses: https://github.com/wlixcc/SFTP-Deploy-Action@v1.2.4
with:
username: root
username: binlab
server: 172.17.0.1
port: 22
password: ${{ secrets.SSH_PRIVATE_KEY }}
# clones entire github repo
local_path: ./*
# destination of the code on the server
remote_path: /home/admin/${{ env.REPO_NAME }}/
ssh_private_key: ignored
ssh_private_key: ${{ secrets.SSH_PRIVATE_KEY }}
# you may or may not need this. It all depends on how your code retrieves your discord token
# environment variables or Github secrets are heavily recommended
@@ -56,7 +54,7 @@ jobs:
echo ${{ env.BOT_TOKEN }} > token.0
echo $?
host: 172.17.0.1
user: root
user: binlab
pass: ${{ secrets.SSH_PRIVATE_KEY }}
create-systemctl-service:
@@ -85,8 +83,8 @@ jobs:
sudo systemctl daemon-reload
sudo systemctl start ${{ env.REPO_NAME }}.service
host: 172.17.0.1
user: root
pass: ${{ secrets.SSH_PRIVATE_KEY }}
user: binlab
key: ${{ secrets.SSH_PRIVATE_KEY }}
create-systemctl-restart:
needs: [create-systemctl-service, add-bot-token, deploy-via-sftp]
@@ -108,5 +106,5 @@ jobs:
sudo systemctl daemon-reload
sudo systemctl start ${{ env.REPO_NAME }}-watcher.service
host: 172.17.0.1
user: root
pass: ${{ secrets.SSH_PRIVATE_KEY }}
user: binlab
key: ${{ secrets.SSH_PRIVATE_KEY }}