This repository was archived by the owner on Feb 5, 2026. It is now read-only.
Execute remote shell script #270
This file contains hidden or 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: Execute remote shell script | |
| on: | |
| workflow_dispatch: | |
| workflow_run: | |
| workflows: | |
| - "Build Frontend and Push Docker Image" | |
| - "Build Backend and Push Docker Image" | |
| types: | |
| - completed | |
| jobs: | |
| execute_remote_script: | |
| runs-on: ubuntu-latest | |
| env: | |
| WORKFLOW_COUNT: 0 | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: (nd) executing remote ssh commands using ssh key | |
| uses: appleboy/ssh-action@master | |
| with: | |
| host: ${{ secrets.REMOTE_SERVER_HOST }} | |
| username: ${{ secrets.REMOTE_SERVER_USER }} | |
| key: ${{ secrets.REMOTE_SERVER_PRIVATE_KEY }} | |
| port: ${{ secrets.REMOTE_SERVER_PORT }} | |
| script: sh ${{ secrets.REMOTE_SCRIPT_PATH }} |