Skip to content

Deploy

Deploy #27

Workflow file for this run

name: Deploy
on:
workflow_run:
workflows:
- Build and Publish Docker Image
types:
- completed
jobs:
deploy:
if: ${{ github.event.workflow_run.conclusion == 'success' }}
runs-on: ubuntu-latest
steps:
- name: Deploy to Server
uses: appleboy/ssh-action@master
with:
host: ${{ secrets.SERVER_HOST }}
username: ${{ secrets.SERVER_USER }}
key: ${{ secrets.SSH_PRIVATE_KEY }}
script: |
cd ~/Agent/
./deploy_base_agent.sh
echo "Deployment completed!"