diff --git a/.gitea/workflows/ci-cd.yaml b/.gitea/workflows/ci-cd.yaml index 114f195..18d71d0 100644 --- a/.gitea/workflows/ci-cd.yaml +++ b/.gitea/workflows/ci-cd.yaml @@ -177,6 +177,16 @@ jobs: echo "CACHE_AVAILABLE=false" >> $GITHUB_ENV fi + - name: Install dependencies + run: | + if [ "${{ env.CACHE_AVAILABLE }}" = "true" ]; then + echo "Running in Docker Compose container..." + docker compose -f docker-compose.build.yml exec -w /workspace build-cache sh -c "go mod tidy" + else + echo "Running natively..." + go mod tidy + fi + - name: Start build cache container with Docker Compose run: | if [ "${{ env.CACHE_AVAILABLE }}" = "true" ]; then @@ -263,7 +273,14 @@ jobs: run: swag fmt - name: Build binaries - run: ./scripts/build.sh + run: | + if [ "${{ env.CACHE_AVAILABLE }}" = "true" ]; then + echo "Running in Docker Compose container..." + docker compose -f docker-compose.build.yml exec -w /workspace build-cache sh -c "./scripts/build.sh" + else + echo "Running natively..." + ./scripts/build.sh + fi # NOTE: Artifact upload disabled - actions/upload-artifact@v4 not available on Gitea # TODO: Replace with Gitea-specific upload action when available