From c99495c11308378f8b4023b2115f5bce3f191e7e Mon Sep 17 00:00:00 2001 From: binlab Date: Fri, 24 Oct 2025 16:15:23 +0000 Subject: [PATCH] probando probando --- .gitea/workflows/deploy-new.yml | 20 +++++++++----------- 1 file changed, 9 insertions(+), 11 deletions(-) diff --git a/.gitea/workflows/deploy-new.yml b/.gitea/workflows/deploy-new.yml index 1e35ded..b2b6708 100644 --- a/.gitea/workflows/deploy-new.yml +++ b/.gitea/workflows/deploy-new.yml @@ -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 }} \ No newline at end of file + user: binlab + key: ${{ secrets.SSH_PRIVATE_KEY }} \ No newline at end of file