- dependabot.yml: weekly Go/npm/cargo/Actions dependency PRs - upstream-sync.yml: weekly upstream->fork merge PR so security fixes keep landing automatically - docker-compose.dev.yml: postgres + redis + backend from source - NOTICE: upstream attribution and independent implementation note - build-assets.sh: tolerate empty version arg (snapshot builds) Generated with [Devin](https://devin.ai) Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>pull/3579/head
parent
ed2dd60263
commit
9efe099c44
@ -0,0 +1,45 @@
|
||||
version: 2
|
||||
updates:
|
||||
- package-ecosystem: gomod
|
||||
directory: /
|
||||
schedule:
|
||||
interval: weekly
|
||||
open-pull-requests-limit: 10
|
||||
labels:
|
||||
- dependencies
|
||||
- go
|
||||
|
||||
- package-ecosystem: npm
|
||||
directory: /frontend
|
||||
schedule:
|
||||
interval: weekly
|
||||
open-pull-requests-limit: 10
|
||||
labels:
|
||||
- dependencies
|
||||
- frontend
|
||||
|
||||
- package-ecosystem: cargo
|
||||
directory: /desktop
|
||||
schedule:
|
||||
interval: weekly
|
||||
open-pull-requests-limit: 10
|
||||
labels:
|
||||
- dependencies
|
||||
- desktop
|
||||
|
||||
- package-ecosystem: npm
|
||||
directory: /desktop/ui
|
||||
schedule:
|
||||
interval: weekly
|
||||
open-pull-requests-limit: 10
|
||||
labels:
|
||||
- dependencies
|
||||
- desktop
|
||||
|
||||
- package-ecosystem: github-actions
|
||||
directory: /
|
||||
schedule:
|
||||
interval: weekly
|
||||
labels:
|
||||
- dependencies
|
||||
- ci
|
||||
@ -0,0 +1,57 @@
|
||||
name: Upstream Sync
|
||||
|
||||
on:
|
||||
schedule:
|
||||
- cron: "0 6 * * 1" # Mondays 06:00 UTC
|
||||
workflow_dispatch:
|
||||
|
||||
permissions:
|
||||
contents: write
|
||||
pull-requests: write
|
||||
|
||||
jobs:
|
||||
sync:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
fetch-depth: 0
|
||||
|
||||
- name: Fetch upstream
|
||||
run: |
|
||||
git remote add upstream https://github.com/cloudreve/cloudreve.git
|
||||
git fetch upstream master
|
||||
|
||||
- name: Check divergence
|
||||
id: check
|
||||
run: |
|
||||
BEHIND=$(git rev-list --count HEAD..upstream/master)
|
||||
echo "behind=$BEHIND" >> "$GITHUB_OUTPUT"
|
||||
if [ "$BEHIND" -eq 0 ]; then
|
||||
echo "Already up to date with upstream."
|
||||
fi
|
||||
|
||||
- name: Create sync PR
|
||||
if: steps.check.outputs.behind != '0'
|
||||
env:
|
||||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
run: |
|
||||
BRANCH="sync/upstream-$(date +%Y%m%d)"
|
||||
git config user.name "github-actions[bot]"
|
||||
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
|
||||
git checkout -b "$BRANCH"
|
||||
git merge upstream/master --no-edit -m "chore: sync upstream master ($(date +%Y-%m-%d))" || {
|
||||
echo "Merge conflicts detected — opening PR for manual resolution."
|
||||
git merge --abort
|
||||
git checkout upstream/master -b "$BRANCH"
|
||||
}
|
||||
git push origin "$BRANCH"
|
||||
gh pr create \
|
||||
--title "chore: sync upstream master ($(date +%Y-%m-%d))" \
|
||||
--body "$(cat <<'EOF'
|
||||
Weekly upstream synchronization. ${{ steps.check.outputs.behind }} commits behind upstream/master.
|
||||
|
||||
Review the diff before merging — upstream changes may conflict with local modifications.
|
||||
EOF
|
||||
)" \
|
||||
--label "upstream-sync" || echo "PR may already exist for this branch."
|
||||
@ -0,0 +1,23 @@
|
||||
Cloudreve — community-maintained open-source distribution
|
||||
=========================================================
|
||||
|
||||
This repository is a fork of Cloudreve, originally created and
|
||||
maintained by the Cloudreve authors:
|
||||
|
||||
https://github.com/cloudreve/cloudreve
|
||||
https://cloudreve.org
|
||||
|
||||
Upstream components vendored into this repository:
|
||||
|
||||
frontend/ — Cloudreve Web UI (github.com/cloudreve/frontend)
|
||||
desktop/ — Cloudreve Desktop (github.com/cloudreve/desktop)
|
||||
|
||||
All upstream code remains under its original license (GPLv3 unless
|
||||
otherwise noted in the component). Original copyright notices are
|
||||
preserved in the respective source trees.
|
||||
|
||||
This distribution is maintained independently and is not affiliated
|
||||
with or endorsed by the original Cloudreve authors. Functionality
|
||||
equivalent to Cloudreve Pro is implemented independently in this
|
||||
repository and released under the same open-source license — no
|
||||
private Pro code is used.
|
||||
@ -0,0 +1,45 @@
|
||||
# Development stack: backend built from source + postgres + redis.
|
||||
# Usage: docker compose -f docker-compose.dev.yml up
|
||||
# For frontend hot reload, run `yarn dev` in ./frontend separately and
|
||||
# point it at the backend on :5212.
|
||||
services:
|
||||
backend:
|
||||
build:
|
||||
context: .
|
||||
dockerfile: Dockerfile
|
||||
container_name: cloudreve-dev-backend
|
||||
depends_on:
|
||||
- postgresql
|
||||
- redis
|
||||
ports:
|
||||
- 5212:5212
|
||||
environment:
|
||||
- CR_CONF_Database.Type=postgres
|
||||
- CR_CONF_Database.Host=postgresql
|
||||
- CR_CONF_Database.User=cloudreve
|
||||
- CR_CONF_Database.Name=cloudreve
|
||||
- CR_CONF_Database.Port=5432
|
||||
- CR_CONF_Redis.Server=redis:6379
|
||||
volumes:
|
||||
- backend_data:/cloudreve/data
|
||||
|
||||
postgresql:
|
||||
image: postgres:17
|
||||
container_name: cloudreve-dev-postgres
|
||||
environment:
|
||||
- POSTGRES_USER=cloudreve
|
||||
- POSTGRES_DB=cloudreve
|
||||
- POSTGRES_HOST_AUTH_METHOD=trust
|
||||
volumes:
|
||||
- database_postgres:/var/lib/postgresql/data
|
||||
|
||||
redis:
|
||||
image: redis:7
|
||||
container_name: cloudreve-dev-redis
|
||||
volumes:
|
||||
- redis_data:/data
|
||||
|
||||
volumes:
|
||||
backend_data:
|
||||
database_postgres:
|
||||
redis_data:
|
||||
Loading…
Reference in new issue