XCCup Deployment #121
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: XCCup Deployment | |
| on: workflow_dispatch | |
| jobs: | |
| build: | |
| name: Deploy | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Login via SSH, pull changes from "main", build docker images and check afterwards the log | |
| uses: appleboy/ssh-action@master | |
| with: | |
| host: ${{ secrets.SSH_HOST }} | |
| username: ${{ secrets.SSH_USER }} | |
| key: ${{ secrets.SSH_KEY }} | |
| port: ${{ secrets.SSH_PORT }} | |
| script: | | |
| set -e | |
| cd ~/xccup.net | |
| git pull | |
| docker compose -f docker-compose-prod.yml up -d --force-recreate --build | |
| docker logs -n 10 xccup-server | |
| docker logs -n 10 xccup-client |