Skip to content

Commit a645c73

Browse files
committed
feat: add newsdiff as submodule, build from submodule in CI
- newsdiff app source as git submodule (same pattern as cloudron-newsdiff) - CI builds from ./newsdiff submodule instead of cloning separately - docker-compose references ghcr.io/rmdes/newsdiff-deploy:main
1 parent 41fb9c5 commit a645c73

3 files changed

Lines changed: 7 additions & 5 deletions

File tree

.github/workflows/docker.yml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,8 @@ jobs:
4141
packages: write
4242
steps:
4343
- uses: actions/checkout@v4
44-
45-
# Clone the app source to build from
46-
- name: Clone newsdiff app
47-
run: git clone --depth 1 https://github.com/rmdes/newsdiff.git app
44+
with:
45+
submodules: recursive
4846

4947
- uses: docker/setup-buildx-action@v3
5048

@@ -65,7 +63,7 @@ jobs:
6563
6664
- uses: docker/build-push-action@v6
6765
with:
68-
context: ./app
66+
context: ./newsdiff
6967
push: true
7068
tags: ${{ steps.meta.outputs.tags }}
7169
labels: ${{ steps.meta.outputs.labels }}

.gitmodules

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[submodule "newsdiff"]
2+
path = newsdiff
3+
url = https://github.com/rmdes/newsdiff.git

newsdiff

Submodule newsdiff added at 45f3daa

0 commit comments

Comments
 (0)