Update mwcpool.stream.conf #12
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Deploy to Azure | |
on: | |
push: | |
branches: | |
- main # Adjust to your main branch | |
jobs: | |
deploy: | |
runs-on: ubuntu-24.04 # Specify runner version | |
steps: | |
# Step 1: Checkout the code | |
- name: Checkout Code | |
uses: actions/checkout@v3 | |
# Step 2: Set up SSH | |
- name: Set up SSH | |
run: | | |
mkdir -p ~/.ssh | |
echo "${{ secrets.AZURE_PRIVATE_KEY }}" > ~/.ssh/id_rsa | |
chmod 600 ~/.ssh/id_rsa | |
ssh-keyscan -H 13.84.184.169 >> ~/.ssh/known_hosts | |
# Step 3: Deploy to Azure server | |
- name: Deploy to Azure | |
run: | | |
ssh -i ~/.ssh/id_rsa svc_mwc@13.84.184.169 << 'EOF' | |
set -e # Exit immediately if a command fails | |
cd /path/to/your/project # Replace with the actual project directory | |
git pull origin main # Pull latest changes from the repository | |
./restart_script.sh # Restart the application (custom script) | |
EOF |