From b35abdeda88fb5d4cfd83f899bf14aad2371fb29 Mon Sep 17 00:00:00 2001 From: giles Date: Wed, 11 Feb 2026 13:29:32 +0000 Subject: [PATCH] Replace shared_lib submodule with shared for decoupling deploy MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Swap shared_lib submodule → shared (tracking decoupling branch) - Dockerfile: shared_lib/ → shared/, remove bp symlink hack - CI: trigger on decoupling branch, use dynamic ref_name Co-Authored-By: Claude Opus 4.6 --- .gitea/workflows/ci.yml | 6 +++--- .gitmodules | 5 +++-- Dockerfile | 5 +---- shared | 1 + shared_lib | 1 - 5 files changed, 8 insertions(+), 10 deletions(-) create mode 160000 shared delete mode 160000 shared_lib diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index e5173ea..8e2201c 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -2,7 +2,7 @@ name: Build and Deploy on: push: - branches: [main] + branches: [main, decoupling] env: REGISTRY: registry.rose-ash.com:5000 @@ -36,8 +36,8 @@ jobs: run: | ssh "root@$DEPLOY_HOST" " cd ${{ env.REPO_DIR }} - git fetch origin main - git reset --hard origin/main + git fetch origin ${{ github.ref_name }} + git reset --hard origin/${{ github.ref_name }} git submodule update --init --recursive " diff --git a/.gitmodules b/.gitmodules index db171b9..b509b5a 100644 --- a/.gitmodules +++ b/.gitmodules @@ -1,3 +1,4 @@ -[submodule "shared_lib"] - path = shared_lib +[submodule "shared"] + path = shared url = https://git.rose-ash.com/coop/shared.git + branch = decoupling diff --git a/Dockerfile b/Dockerfile index 8bbdbbf..96db826 100644 --- a/Dockerfile +++ b/Dockerfile @@ -16,14 +16,11 @@ RUN apt-get update && apt-get install -y --no-install-recommends \ postgresql-client \ && rm -rf /var/lib/apt/lists/* -COPY shared_lib/requirements.txt ./requirements.txt +COPY shared/requirements.txt ./requirements.txt RUN pip install -r requirements.txt COPY . . -# Link app blueprints into the shared library's namespace -RUN rm -rf /app/shared_lib/suma_browser/app/bp && ln -s /app/bp /app/shared_lib/suma_browser/app/bp - # ---------- Runtime setup ---------- COPY entrypoint.sh /usr/local/bin/entrypoint.sh RUN chmod +x /usr/local/bin/entrypoint.sh diff --git a/shared b/shared new file mode 160000 index 0000000..4dd2552 --- /dev/null +++ b/shared @@ -0,0 +1 @@ +Subproject commit 4dd25526b9ddd2da7ab1dc125ed9d15e78cd74ac diff --git a/shared_lib b/shared_lib deleted file mode 160000 index 0c9b8d6..0000000 --- a/shared_lib +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 0c9b8d6aa2b8f48c30091e0ab57170eb52040cc9