Copy docker compose file to cloud server by BHyeonKim #18
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: Copy Compose | |
| run-name: Copy docker compose file to cloud server by ${{ github.actor }} | |
| on: | |
| workflow_run: | |
| workflows: [Deploy nginx] | |
| types: | |
| - completed | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Copy files via SSH | |
| uses: appleboy/scp-action@v1 | |
| with: | |
| host: ${{ secrets.CLOUD_HOST }} | |
| username: ${{ secrets.CLOUD_USERNAME }} | |
| key: ${{ secrets.CLOUD_SECRET_KEY }} | |
| port: ${{ secrets.CLOUD_PORT }} | |
| source: "docker-compose.yml" | |
| target: "~" |