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