probando probando
This commit is contained in:
@@ -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 }}
|
||||
Reference in New Issue
Block a user