This commit is contained in:
25
.gitea/workflows/deploy.yaml
Normal file
25
.gitea/workflows/deploy.yaml
Normal file
@@ -0,0 +1,25 @@
|
||||
name: Deploy Monorepo to Opt
|
||||
on: [push]
|
||||
|
||||
jobs:
|
||||
deploy:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout Code
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: Sync OVH Subfolder to Opt
|
||||
run: |
|
||||
# Create the target path on the host
|
||||
mkdir -p /opt/hurricane/apps/ovh
|
||||
|
||||
# Copy only the contents of the 'ovh' folder from the repo
|
||||
# This avoids copying the top-level .git, ansible, or cloudflare folders
|
||||
cp -r ./ovh/. /opt/hurricane/apps/ovh/
|
||||
|
||||
- name: Launch Independent Stacks
|
||||
run: |
|
||||
cd /opt/hurricane/apps/ovh/
|
||||
# Deploying as independent projects
|
||||
docker compose -p nextcloud -f nextcloud.yml up -d --remove-orphans
|
||||
docker compose -p plex -f plex.yml up -d --remove-orphans
|
||||
Reference in New Issue
Block a user