funciona?

This commit is contained in:
binlab
2023-09-22 23:29:24 +00:00
parent a5dfe782df
commit 00d0dfa229

View File

@@ -17,7 +17,7 @@ jobs:
pip install -r requirements.txt pip install -r requirements.txt
host: 172.17.0.1 host: 172.17.0.1
user: root user: root
key: ${{ secrets.SSH_PRIVATE_KEY }} pass: ${{ secrets.SSH_PRIVATE_KEY }}
deploy-via-sftp: deploy-via-sftp:
@@ -30,7 +30,7 @@ jobs:
username: root username: root
server: 172.17.0.1 server: 172.17.0.1
port: 22 port: 22
ssh_private_key: ${{ secrets.SSH_PRIVATE_KEY }} 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
@@ -56,7 +56,7 @@ jobs:
echo $? echo $?
host: 172.17.0.1 host: 172.17.0.1
user: root user: root
key: ${{ secrets.SSH_PRIVATE_KEY }} pass: ${{ secrets.SSH_PRIVATE_KEY }}
create-systemctl-service: create-systemctl-service:
needs: [add-bot-token, deploy-via-sftp] needs: [add-bot-token, deploy-via-sftp]
@@ -85,7 +85,7 @@ jobs:
sudo systemctl start ${{ env.REPO_NAME }}.service sudo systemctl start ${{ env.REPO_NAME }}.service
host: 127.0.0.1 host: 127.0.0.1
user: root user: root
key: ${{ secrets.SSH_PRIVATE_KEY }} pass: ${{ 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,4 +108,4 @@ jobs:
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: root
key: ${{ secrets.SSH_PRIVATE_KEY }} pass: ${{ secrets.SSH_PRIVATE_KEY }}