diff --git a/.gitea/workflows/deploy.yaml b/.gitea/workflows/deploy.yaml index 514a78f..2470924 100644 --- a/.gitea/workflows/deploy.yaml +++ b/.gitea/workflows/deploy.yaml @@ -3,23 +3,30 @@ on: [push] jobs: deploy: - runs-on: ubuntu-latest # REQUIRED: This matches your runner label - steps: # REQUIRED: Steps must be under the 'steps' key + runs-on: ubuntu-latest + steps: - name: Checkout Code uses: actions/checkout@v4 with: fetch-depth: 1 - persist-credentials: false - - name: Sync OVH Subfolder to Opt + - name: Sync and Launch Nextcloud run: | - mkdir -p /opt/hurricane/apps/ovh - # Using /. to copy contents into the existing folder - cp -r ./ovh/. /opt/hurricane/apps/ovh/ + # 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: Launch Independent Stacks + - name: Sync and Launch Plex run: | - cd /opt/hurricane/apps/ovh/ - # -p creates separate projects in Docker - docker compose -p nextcloud -f nextcloud.yml up -d --remove-orphans - docker compose -p plex -f plex.yml up -d --remove-orphans \ No newline at end of file + # 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 \ No newline at end of file