From 0f3a03c67e1a73eef00d31c9bf2c015455b697ed Mon Sep 17 00:00:00 2001 From: Apher Date: Fri, 17 Jul 2026 05:19:47 +0000 Subject: [PATCH] Build recursive submodules --- .gitea/workflows/docker.yml | 22 ++++++++++++++++------ 1 file changed, 16 insertions(+), 6 deletions(-) diff --git a/.gitea/workflows/docker.yml b/.gitea/workflows/docker.yml index b7d6d0a..ee0401a 100644 --- a/.gitea/workflows/docker.yml +++ b/.gitea/workflows/docker.yml @@ -9,7 +9,15 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 + - name: Checkout repository with submodules + uses: actions/checkout@v4 + with: + submodules: recursive + + - name: Verify submodules + run: | + git submodule status + ls -la modules/db - name: Login to Registry uses: docker/login-action@v2 @@ -23,11 +31,13 @@ jobs: BRANCH_NAME: ${{ github.ref_name }} SHORT_HASH: ${{ github.sha }} run: | - # Build the image with the commit hash tag - docker build --build-arg BUILD_IDENTIFIER=${SHORT_HASH:0:5} -t gitea.spilum.net/spilum.net/mtf-backend:${BRANCH_NAME}-${SHORT_HASH:0:5} . + docker build \ + --build-arg BUILD_IDENTIFIER=${SHORT_HASH:0:5} \ + -t gitea.spilum.net/spilum.net/mtf-backend:${BRANCH_NAME}-${SHORT_HASH:0:5} . - # Tag the same image as "latest" - docker tag gitea.spilum.net/spilum.net/mtf-backend:${BRANCH_NAME}-${SHORT_HASH:0:5} gitea.spilum.net/spilum.net/mtf-backend:${BRANCH_NAME}-latest + docker tag \ + gitea.spilum.net/spilum.net/mtf-backend:${BRANCH_NAME}-${SHORT_HASH:0:5} \ + gitea.spilum.net/spilum.net/mtf-backend:${BRANCH_NAME}-latest - name: Push Docker Image env: @@ -39,4 +49,4 @@ jobs: - name: Log out from registry if: always() - run: docker logout gitea.spilum.net + run: docker logout gitea.spilum.net \ No newline at end of file