File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 1919 env :
2020 PASSWORD : ${{ secrets.PASSWORD }}
2121
22- - name : Add VM to known_hosts
22+ - name : Add Azure VM to known_hosts
2323 run : |
2424 mkdir -p ~/.ssh
2525 ssh-keyscan -H ${{ secrets.VM_HOST }} >> ~/.ssh/known_hosts
@@ -28,11 +28,11 @@ jobs:
2828 run : |
2929 cat ~/.ssh/known_hosts # Optional step to confirm the host is added
3030
31- - name : Synchronize Code with VM Using rsync
31+ - name : Synchronize Code with Azure VM Using rsync
3232 env :
3333 RSYNC_RSH : " ssh"
3434 run : |
35- rsync -avz --exclude='.git' --exclude='.env' --exclude='nuclei-templates/' --exclude='.env' ./ ${{ secrets.VM_USER }}@${{ secrets.VM_HOST }}:/home/dev /CAPEC-Rag/
35+ rsync -avz --exclude='.git' --exclude='.env' -e "ssh -o PreferredAuthentications=password -o PubkeyAuthentication=no" ./ ${{ secrets.VM_USER }}@${{ secrets.VM_HOST }}:/home/devops /CAPEC-Rag/
3636
3737 - name : Restart Docker Compose Services
38384242 password : ${{ secrets.PASSWORD }} # Using the PASSWORD secret for SSH login
4343 script : |
4444 echo "Stopping existing Docker Compose services..."
45- cd /home/dev /CAPEC-Rag/
45+ cd /home/devops /CAPEC-Rag/
4646 sudo docker-compose down
4747 echo "Starting Docker Compose services..."
4848 sudo docker-compose build --no-cache
You can’t perform that action at this time.
0 commit comments