Restart 'P3D Legacy Server Next' #53
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: "Restart 'P3D Legacy Server Next'" | |
on: | |
workflow_dispatch: | |
jobs: | |
restart: | |
name: "Restart 'P3D Legacy Server Next'" | |
runs-on: ubuntu-latest | |
steps: | |
- uses: appleboy/ssh-action@master | |
with: | |
host: ${{ secrets.HOST }} | |
username: ${{ secrets.USERNAME }} | |
password: ${{ secrets.PASSWORD }} | |
port: ${{ secrets.PORT }} | |
script: | | |
docker service update --force nextp3dlegacyserver_next_p3d_legacy_server; | |
- name: Checkout Repository | |
if: always() | |
uses: actions/checkout@v4 | |
- name: Notify | |
if: always() | |
env: | |
BUILD_STATUS: ${{ job.status }} | |
WEBHOOK_URL: ${{ secrets.DISCORD_WEBHOOK_QA }} | |
run: bash ./.github/workflows/discord.sh |