42 lines
1.3 KiB
YAML
42 lines
1.3 KiB
YAML
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
|
|
|
|
- name: Sync and Launch CV
|
|
run: |
|
|
mkdir -p /opt/docker/cv
|
|
# Sync everything in the cv folder (html, dockerfile, etc)
|
|
cp -r ./cv/. /opt/docker/cv/
|
|
echo "Shan33779488@@" | docker login g.h-y.st -u zeshan --password-stdin
|
|
cd /opt/docker/cv
|
|
# Rebuild is necessary here because it's a custom Dockerfile
|
|
docker compose up -d --build --remove-orphans |