name: Deploy Monorepo to Opt on: [push] jobs: deploy: runs-on: ubuntu-latest steps: - name: Checkout Code uses: actions/checkout@v4 with: fetch-depth: 1 - name: Sync and Launch Nextcloud run: | # Ensure folder exists and copy the file mkdir -p /opt/docker/nextcloud cp ./ovh/nextcloud.yml /opt/docker/nextcloud/docker-compose.yml # Deploy cd /opt/docker/nextcloud docker compose up -d --remove-orphans - name: Sync and Launch Plex run: | # Ensure folder exists and copy the file mkdir -p /opt/docker/plex cp ./ovh/plex.yml /opt/docker/plex/docker-compose.yml # Deploy cd /opt/docker/plex # Note: If the /dev/dri error persists, you must edit the plex.yml in your repo first docker compose up -d --remove-orphans