Update deploy.yaml
Some checks failed
Deploy Monorepo to Opt / deploy (push) Failing after 10s

This commit is contained in:
mrzta
2026-02-12 23:43:10 +00:00
parent 1ce75f4502
commit e9b26c7d9a

View File

@@ -13,37 +13,32 @@ jobs:
- name: Sync and Launch Nextcloud
run: |
mkdir -p /opt/docker/nextcloud
# Force overwrite the compose file
cp -f ./ovh/nextcloud.yml /opt/docker/nextcloud/docker-compose.yml
# rsync -v (verbose) ensures the file is updated on the host
rsync -v ./ovh/nextcloud.yml /opt/docker/nextcloud/docker-compose.yml
cd /opt/docker/nextcloud
# Force recreation ensures changes in the .yml are applied
# --force-recreate ensures Docker actually picks up the new file
docker compose up -d --force-recreate --remove-orphans
- name: Sync and Launch Plex
run: |
mkdir -p /opt/docker/plex
# Force overwrite the compose file
cp -f ./ovh/plex.yml /opt/docker/plex/docker-compose.yml
rsync -v ./ovh/plex.yml /opt/docker/plex/docker-compose.yml
cd /opt/docker/plex
# Recreate even if image hasn't changed to ensure config updates
docker compose up -d --force-recreate --remove-orphans
- name: Sync and Launch CV
run: |
# Clean old files to ensure the build context is fresh
rm -rf /opt/docker/cv/*
mkdir -p /opt/docker/cv
# Sync entire folder (Dockerfile, index.html, etc)
cp -r ./cv/. /opt/docker/cv/
# -a (archive) preserves permissions; --delete removes old junk
rsync -av --delete ./cv/ /opt/docker/cv/
cd /opt/docker/cv
# Build forces Docker to re-read the synced files for the new image
# --build is required to refresh your custom HTML/Dockerfile
docker compose up -d --build --force-recreate --remove-orphans
- name: Cleanup
run: |
# Remove dangling images left over from the CV rebuild
# Removes old CV images so your Xeon disk doesn't fill up
docker image prune -f