This commit is contained in:
@@ -3,30 +3,33 @@ on: [push]
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
deploy:
|
deploy:
|
||||||
- name: Checkout Code
|
runs-on: ubuntu-latest # REQUIRED: This matches your runner label
|
||||||
uses: actions/checkout@v4 # Use v4 for better Node 20+ support
|
steps: # REQUIRED: Steps must be under the 'steps' key
|
||||||
with:
|
- name: Install Git
|
||||||
fetch-depth: 1
|
|
||||||
# This forces the runner to use the git binary instead of the REST API
|
|
||||||
persist-credentials: false
|
|
||||||
|
|
||||||
- name: Install NPM and Tools
|
|
||||||
run: |
|
run: |
|
||||||
apt-get update
|
apt-get update
|
||||||
apt-get install -y nodejs npm gettext-base # gettext-base provides envsubst
|
apt-get install -y git
|
||||||
|
|
||||||
|
- name: Checkout Code
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
with:
|
||||||
|
fetch-depth: 1
|
||||||
|
persist-credentials: false
|
||||||
|
|
||||||
|
- name: Install Tools
|
||||||
|
run: |
|
||||||
|
apt-get update
|
||||||
|
apt-get install -y nodejs npm gettext-base
|
||||||
|
|
||||||
- name: Sync OVH Subfolder to Opt
|
- name: Sync OVH Subfolder to Opt
|
||||||
run: |
|
run: |
|
||||||
# Create the target path on the host
|
|
||||||
mkdir -p /opt/hurricane/apps/ovh
|
mkdir -p /opt/hurricane/apps/ovh
|
||||||
|
# Using /. to copy contents into the existing folder
|
||||||
# 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/
|
cp -r ./ovh/. /opt/hurricane/apps/ovh/
|
||||||
|
|
||||||
- name: Launch Independent Stacks
|
- name: Launch Independent Stacks
|
||||||
run: |
|
run: |
|
||||||
cd /opt/hurricane/apps/ovh/
|
cd /opt/hurricane/apps/ovh/
|
||||||
# Deploying as independent projects
|
# -p creates separate projects in Docker
|
||||||
docker compose -p nextcloud -f nextcloud.yml up -d --remove-orphans
|
docker compose -p nextcloud -f nextcloud.yml up -d --remove-orphans
|
||||||
docker compose -p plex -f plex.yml up -d --remove-orphans
|
docker compose -p plex -f plex.yml up -d --remove-orphans
|
||||||
Reference in New Issue
Block a user