Compare commits

...
Author SHA1 Message Date
github-actions[bot] 026b5197cd Update CHANGELOG.md 2026-12-03 19:01:16 +00:00
CanbiZ (MickLesk) 5e0c8163ba AFFiNE: run one server, update to 0.27.4 (#19283)
* AFFiNE: run one server, update to 0.27.4

affine-worker started a second all-in-one server (there is no --worker
flag), which fought affine-web for port 3010 and restarted every 10 s.
The update removes the unit from existing installs. Yarn now comes from
packageManager instead of a pinned 4.13.0, and the update no longer
copies the storage directory into the backup.

* Remove obsolete affine-worker

Removed comment about affine-worker conflict with affine-web.
2026-12-03 20:00:57 +01:00
CanbiZ (MickLesk) 0d581f318b ci: fix fork merges and issue locking, merge the drift-closed workflows (#19286)
Close Matching Issue ran on pull_request, so merged fork PRs had no
secrets and the PocketBase step connected to localhost. It now runs on
pull_request_target; it only checks out the merge commit.

Lock closed issues asked for up to 100 search pages, but search stops at
1000 results and the run failed with 422 whenever more were pending.

The Node.js, PHP and Python drift-closed workflows differed only in the
runtime name, and each skipped run cluttered every PR close.
2026-12-03 19:37:05 +01:00
Tobias e56e3d3d69 BentoPDF: use relative redirects in nginx (#19284) 2026-12-03 18:40:17 +01:00
CanbiZ (MickLesk) 0dee0a10e9 Docker/NPMplus (Alpine): use docker-cli-compose instead of a downloaded binary (#19278)
The Alpine installs put Compose into /root/.docker/cli-plugins by curl.
Nothing updated it afterwards (the update is apk -U upgrade), and the CLI
prefers that directory over the package path. Install docker-cli-compose
instead, and on update move existing containers to the package before
removing the old binary.
2026-12-03 10:40:53 +01:00
Sab44 df41ccbdb8 Include custom images in backup (#19276) 2026-12-03 09:21:39 +01:00
15 changed files with 107 additions and 181 deletions

No files matched your search

+3 -1
View File
@@ -1,6 +1,8 @@
name: Close Matching Issue on PR Merge
# pull_request_target so merged fork PRs get the secrets too. No PR code runs:
# the checkout is the merge commit on main.
on:
pull_request:
pull_request_target:
types:
- closed
@@ -1,6 +1,6 @@
name: Record closed PHP drift PR
name: Record closed drift PR
# The drift check opens one PR per script and treats a closed one as a verdict:
# The drift checks open one PR per script and treat a closed one as a verdict:
# that bump is not proposed again. Record it on the report so the decision is
# visible there.
@@ -13,7 +13,9 @@ jobs:
if: >
github.repository == 'community-scripts/ProxmoxVE' &&
github.event.pull_request.merged == false &&
startsWith(github.event.pull_request.head.ref, 'php-drift/')
(startsWith(github.event.pull_request.head.ref, 'node-drift/') ||
startsWith(github.event.pull_request.head.ref, 'php-drift/') ||
startsWith(github.event.pull_request.head.ref, 'python-drift/'))
runs-on: ubuntu-latest
permissions:
issues: write
@@ -25,10 +27,15 @@ jobs:
const owner = context.repo.owner;
const repo = context.repo.repo;
// php-drift/<slug>-<from>-to-<to>
const m = pr.head.ref.match(/^php-drift\/(.+)-(\d+\.\d+)-to-(\d+\.\d+)$/);
// <kind>-drift/<slug>-<from>-to-<to>
const m = pr.head.ref.match(/^(node|php|python)-drift\/(.+)-(\d+(?:\.\d+)?)-to-(\d+(?:\.\d+)?)$/);
if (!m) return;
const [, slug, from, to] = m;
const [, kind, slug, from, to] = m;
const [report, runtime] = {
node: ['Node.js', 'Node'],
php: ['PHP', 'PHP'],
python: ['Python', 'Python'],
}[kind];
// A close by the stale bot is a lapsed review, not a decision on
// the bump, and the drift check reopens those.
@@ -38,15 +45,15 @@ jobs:
owner, repo, state: 'open', labels: 'automated,dependencies', per_page: 100,
});
const issue = issues.data.find(
(i) => !i.pull_request && i.title === '[Automated] PHP Version Drift Report',
(i) => !i.pull_request && i.title === `[Automated] ${report} Version Drift Report`,
);
if (!issue) return;
const body = stale
? `\`${slug}\` — PR #${pr.number} (PHP ${from} → ${to}) was closed as stale. `
? `\`${slug}\` — PR #${pr.number} (${runtime} ${from} → ${to}) was closed as stale. `
+ `No decision was recorded, so the next drift check opens it again.`
: `\`${slug}\` — PR #${pr.number} (PHP ${from} → ${to}) was closed without merging. `
+ `The script keeps PHP ${from} and this bump will not be proposed again. `
: `\`${slug}\` — PR #${pr.number} (${runtime} ${from} → ${to}) was closed without merging. `
+ `The script keeps ${runtime} ${from} and this bump will not be proposed again. `
+ `If it was closed by mistake, reopen the PR.`;
await github.rest.issues.createComment({
+2 -2
View File
@@ -70,8 +70,8 @@ jobs:
page++;
// GitHub search API limit: max 10000 results (100 pages * 100) - temporarily increased
if (page > 100) break;
// Search returns at most 1000 results; the rest is locked on the next runs
if (page > 10) break;
}
console.log(`Total locked: ${totalLocked} issues/PRs`);
-55
View File
@@ -1,55 +0,0 @@
name: Record closed Node.js drift PR
# The drift check opens one PR per script and treats a closed one as a verdict:
# that bump is not proposed again. That decision is invisible on the report
# unless it is written there, so record it as a comment naming the script.
on:
pull_request:
types: [closed]
jobs:
record:
if: >
github.repository == 'community-scripts/ProxmoxVE' &&
github.event.pull_request.merged == false &&
startsWith(github.event.pull_request.head.ref, 'node-drift/')
runs-on: ubuntu-latest
permissions:
issues: write
steps:
- uses: actions/github-script@v9
with:
script: |
const pr = context.payload.pull_request;
const owner = context.repo.owner;
const repo = context.repo.repo;
// node-drift/<slug>-<from>-to-<to>
const m = pr.head.ref.match(/^node-drift\/(.+)-(\d+)-to-(\d+)$/);
if (!m) return;
const [, slug, from, to] = m;
// A close by the stale bot is a lapsed review, not a decision on
// the bump, and the drift check reopens those. Saying "declined"
// here would contradict it.
const stale = pr.labels.some((l) => l.name === 'stale');
const issues = await github.rest.issues.listForRepo({
owner, repo, state: 'open', labels: 'automated,dependencies', per_page: 100,
});
const issue = issues.data.find(
(i) => !i.pull_request && i.title === '[Automated] Node.js Version Drift Report',
);
if (!issue) return;
const body = stale
? `\`${slug}\` — PR #${pr.number} (Node ${from} → ${to}) was closed as stale. `
+ `No decision was recorded, so the next drift check opens it again.`
: `\`${slug}\` — PR #${pr.number} (Node ${from} → ${to}) was closed without merging. `
+ `The script keeps Node ${from} and this bump will not be proposed again. `
+ `If it was closed by mistake, reopen the PR.`;
await github.rest.issues.createComment({
owner, repo, issue_number: issue.number, body,
});
-54
View File
@@ -1,54 +0,0 @@
name: Record closed Python drift PR
# The drift check opens one PR per script and treats a closed one as a verdict:
# that bump is not proposed again. Record it on the report so the decision is
# visible there.
on:
pull_request:
types: [closed]
jobs:
record:
if: >
github.repository == 'community-scripts/ProxmoxVE' &&
github.event.pull_request.merged == false &&
startsWith(github.event.pull_request.head.ref, 'python-drift/')
runs-on: ubuntu-latest
permissions:
issues: write
steps:
- uses: actions/github-script@v9
with:
script: |
const pr = context.payload.pull_request;
const owner = context.repo.owner;
const repo = context.repo.repo;
// python-drift/<slug>-<from>-to-<to>
const m = pr.head.ref.match(/^python-drift\/(.+)-(\d+\.\d+)-to-(\d+\.\d+)$/);
if (!m) return;
const [, slug, from, to] = m;
// A close by the stale bot is a lapsed review, not a decision on
// the bump, and the drift check reopens those.
const stale = pr.labels.some((l) => l.name === 'stale');
const issues = await github.rest.issues.listForRepo({
owner, repo, state: 'open', labels: 'automated,dependencies', per_page: 100,
});
const issue = issues.data.find(
(i) => !i.pull_request && i.title === '[Automated] Python Version Drift Report',
);
if (!issue) return;
const body = stale
? `\`${slug}\` — PR #${pr.number} (Python ${from} → ${to}) was closed as stale. `
+ `No decision was recorded, so the next drift check opens it again.`
: `\`${slug}\` — PR #${pr.number} (Python ${from} → ${to}) was closed without merging. `
+ `The script keeps Python ${from} and this bump will not be proposed again. `
+ `If it was closed by mistake, reopen the PR.`;
await github.rest.issues.createComment({
owner, repo, issue_number: issue.number, body,
});
+32
View File
@@ -590,6 +590,38 @@ Exercise vigilance regarding copycat or coat-tailing sites that seek to exploit
</details>
## 2026-12-03
### 🚀 Updated Scripts
- #### 🐞 Bug Fixes
- BentoPDF: use relative redirects in nginx [@CrazyWolf13](https://github.com/CrazyWolf13) ([#19284](https://github.com/community-scripts/ProxmoxVE/pull/19284))
- TeddyCloud: Include custom images in backup [@Sab44](https://github.com/Sab44) ([#19276](https://github.com/community-scripts/ProxmoxVE/pull/19276))
- #### 🔧 Refactor
- AFFiNE: run one server, update to 0.27.4 [@MickLesk](https://github.com/MickLesk) ([#19283](https://github.com/community-scripts/ProxmoxVE/pull/19283))
- Docker/NPMplus (Alpine): use docker-cli-compose instead of a downloaded binary [@MickLesk](https://github.com/MickLesk) ([#19278](https://github.com/community-scripts/ProxmoxVE/pull/19278))
### 💾 Core
- setup_docker: install docker-compose-plugin only next to docker-ce [@MickLesk](https://github.com/MickLesk) ([core#335](https://github.com/community-scripts/core/pull/335))
- core: Stop the run when a disabled script is started [@MickLesk](https://github.com/MickLesk) ([core#330](https://github.com/community-scripts/core/pull/330))
- docker: remove legacy docker-compose binaries that shadow docker-compose-plugin [@MickLesk](https://github.com/MickLesk) ([core#334](https://github.com/community-scripts/core/pull/334))
- tools: add check_for_gl_tag [@MickLesk](https://github.com/MickLesk) ([core#332](https://github.com/community-scripts/core/pull/332))
- core: say what curl said when a download fails [@MickLesk](https://github.com/MickLesk) ([core#331](https://github.com/community-scripts/core/pull/331))
- feat: ask VMs for tags, delete protection and the DNS search domain [@MickLesk](https://github.com/MickLesk) ([core#329](https://github.com/community-scripts/core/pull/329))
### 📚 Documentation
- ci: fix fork merges and issue locking, merge the drift-closed workflows [@MickLesk](https://github.com/MickLesk) ([#19286](https://github.com/community-scripts/ProxmoxVE/pull/19286))
### 📂 Github
- fix(ci): daily release fixes (drop Frontend, keep days apart) [@CrazyWolf13](https://github.com/CrazyWolf13) ([#19274](https://github.com/community-scripts/ProxmoxVE/pull/19274))
- fix(ci): set GH_REPO in the daily release step [@CrazyWolf13](https://github.com/CrazyWolf13) ([#19272](https://github.com/community-scripts/ProxmoxVE/pull/19272))
## 2026-12-02
### 🆕 New Scripts
+23 -17
View File
@@ -31,17 +31,26 @@ function update_script() {
exit
fi
RELEASE="v0.27.3"
if [[ -f /etc/systemd/system/affine-worker.service ]]; then
msg_info "Removing affine-worker Service"
systemctl disable -q --now affine-worker
rm -f /etc/systemd/system/affine-worker.service
systemctl daemon-reload
systemctl restart affine-web
msg_ok "Removed affine-worker Service"
fi
RELEASE="v0.27.4"
if check_for_gh_release "affine_app" "toeverything/AFFiNE" "${RELEASE}" "each release is tested individually before the version is updated. Please do not open issues for this"; then
NODE_VERSION="22" setup_nodejs
msg_info "Stopping Services"
systemctl stop affine-web affine-worker
msg_ok "Stopped Services"
msg_info "Stopping Service"
systemctl stop affine-web
msg_ok "Stopped Service"
ensure_dependencies cmake
create_backup /opt/affine/.env /root/.affine/config /root/.affine/storage
create_backup /opt/affine/.env
CLEAN_INSTALL=1 fetch_and_deploy_gh_release "affine_app" "toeverything/AFFiNE" "tarball" "${RELEASE}" "/opt/affine"
@@ -55,14 +64,14 @@ function update_script() {
msg_info "Rebuilding Application (Patience ~25 mins, don't close the console!)"
cd /opt/affine
source /root/.profile
export PATH="/root/.cargo/bin:/root/.rbenv/shims:$PATH"
export PATH="/root/.cargo/bin:$PATH"
set -a && source /opt/affine/.env && set +a
export COREPACK_ENABLE_DOWNLOAD_PROMPT=0
export VITE_CORE_COMMIT_SHA=$(cat ~/.affine_app)
# Initialize git repo (required for build process)
# The build needs a git repository
export HUSKY=0
$STD git init -q
$STD git config user.email "build@local"
@@ -70,7 +79,6 @@ function update_script() {
$STD git add -A
$STD git commit -q -m "update" --no-verify --allow-empty
# Force Turbo to run sequentially
mkdir -p /opt/affine/.turbo
cat <<TURBO >/opt/affine/.turbo/config.json
{
@@ -79,10 +87,9 @@ function update_script() {
TURBO
$STD corepack enable
$STD corepack prepare yarn@4.13.0 --activate
$STD yarn config set enableTelemetry 0
export NODE_OPTIONS="--max-old-space-size=2048"
export NODE_OPTIONS="--max-old-space-size=4096"
$STD yarn install
$STD bash ./scripts/set-version.sh "$(cat ~/.affine_app)"
export BUILD_TYPE=stable
@@ -102,8 +109,6 @@ TURBO
$STD yarn affine init
$STD yarn affine build -p @affine/reader
$STD yarn affine build -p @affine/server
export NODE_OPTIONS="--max-old-space-size=4096"
$STD yarn affine build -p @affine/web
$STD yarn affine build -p @affine/admin
@@ -117,15 +122,16 @@ TURBO
mkdir -p /opt/affine/packages/backend/server/static/mobile
echo '{"publicPath":"/","js":[],"css":[],"gitHash":"","description":""}' \
>/opt/affine/packages/backend/server/static/mobile/assets-manifest.json
msg_ok "Rebuilt Application"
# Run migrations
msg_info "Running Migrations"
cd /opt/affine/packages/backend/server
set -a && source /opt/affine/.env && set +a
$STD node ./scripts/self-host-predeploy.js
msg_ok "Ran Migrations"
msg_info "Starting Services"
systemctl start affine-web affine-worker
msg_ok "Started Services"
msg_info "Starting Service"
systemctl start affine-web
msg_ok "Started Service"
msg_ok "Updated Successfully!"
fi
exit
+1
View File
@@ -74,6 +74,7 @@ server {
server {
listen 8443 ssl;
server_name _;
absolute_redirect off;
ssl_certificate /etc/ssl/certs/bentopdf-selfsigned.crt;
ssl_certificate_key /etc/ssl/private/bentopdf-selfsigned.key;
root /opt/bentopdf/dist;
+9
View File
@@ -60,6 +60,15 @@ update_deb_based() {
update_alpine() {
$STD apk -U upgrade
if [[ -f /root/.docker/cli-plugins/docker-compose ]]; then
msg_info "Migrating Docker Compose to the Alpine package"
if apk info -e docker-cli-compose &>/dev/null || $STD apk add docker-cli-compose; then
rm -f /root/.docker/cli-plugins/docker-compose
msg_ok "Migrated Docker Compose to the Alpine package ($(docker compose version --short))"
else
msg_warn "Could not install docker-cli-compose, keeping the old Compose binary"
fi
fi
msg_ok "Updated successfully!"
}
+10
View File
@@ -26,6 +26,16 @@ function update_script() {
$STD apk -U upgrade
msg_ok "System updated"
if [[ -f /root/.docker/cli-plugins/docker-compose ]]; then
msg_info "Migrating Docker Compose to the Alpine package"
if apk info -e docker-cli-compose &>/dev/null || $STD apk add docker-cli-compose; then
rm -f /root/.docker/cli-plugins/docker-compose
msg_ok "Migrated Docker Compose to the Alpine package"
else
msg_warn "Could not install docker-cli-compose, keeping the old Compose binary"
fi
fi
msg_info "Pulling latest NPMplus container image"
cd /opt
$STD docker compose pull
+2 -1
View File
@@ -41,7 +41,8 @@ function update_script() {
/opt/teddycloud/data/content \
/opt/teddycloud/data/library \
/opt/teddycloud/data/firmware \
/opt/teddycloud/data/cache
/opt/teddycloud/data/cache \
/opt/teddycloud/data/www/custom_img
CLEAN_INSTALL=1 fetch_and_deploy_gh_release "teddycloud" "toniebox-reverse-engineering/teddycloud" "prebuild" "latest" "/opt/teddycloud" "teddycloud.amd64.release*.zip"
+3 -27
View File
@@ -31,7 +31,7 @@ PG_DB_NAME="affine" PG_DB_USER="affine" setup_postgresql_db
NODE_VERSION="22" setup_nodejs
setup_rust
fetch_and_deploy_gh_release "affine_app" "toeverything/AFFiNE" "tarball" "v0.27.3" "/opt/affine"
fetch_and_deploy_gh_release "affine_app" "toeverything/AFFiNE" "tarball" "v0.27.4" "/opt/affine"
msg_info "Setting up Directories"
rm -rf /root/.affine
@@ -59,7 +59,7 @@ source /root/.profile
export PATH="/root/.cargo/bin:$PATH"
export COREPACK_ENABLE_DOWNLOAD_PROMPT=0
export VITE_CORE_COMMIT_SHA=$(cat ~/.affine_app)
# # Initialize git repo (required for build process)
# The build needs a git repository
export HUSKY=0
$STD git init -q
$STD git config user.email "build@local"
@@ -73,10 +73,8 @@ cat <<TURBO >/opt/affine/.turbo/config.json
}
TURBO
$STD corepack enable
$STD corepack prepare yarn@4.13.0 --activate
$STD yarn config set enableTelemetry 0
export NODE_OPTIONS="--max-old-space-size=4096"
export TSC_COMPILE_ON_ERROR=true
$STD yarn install
$STD bash ./scripts/set-version.sh "$(cat ~/.affine_app)"
export BUILD_TYPE=stable
@@ -95,7 +93,6 @@ ln -sf /opt/affine/packages/backend/native/server-native.node \
$STD yarn affine init
$STD yarn affine build -p @affine/reader
$STD yarn affine build -p @affine/server
export NODE_OPTIONS="--max-old-space-size=4096"
$STD yarn affine build -p @affine/web
$STD yarn affine build -p @affine/admin
mkdir -p /opt/affine/packages/backend/server/static
@@ -135,28 +132,7 @@ RestartSec=10
[Install]
WantedBy=multi-user.target
EOF
cat <<EOF >/etc/systemd/system/affine-worker.service
[Unit]
Description=AFFiNE Background Worker
After=network.target postgresql.service redis-server.service
Requires=postgresql.service redis-server.service
[Service]
Type=simple
WorkingDirectory=/opt/affine/packages/backend/server
EnvironmentFile=/opt/affine/.env
Environment=LD_PRELOAD=libjemalloc.so.2
Environment=NODE_OPTIONS=--max-old-space-size=1024
ExecStart=/usr/bin/node ./dist/main.js --worker
Restart=always
RestartSec=10
[Install]
WantedBy=multi-user.target
EOF
systemctl enable -q --now redis-server affine-web affine-worker
systemctl enable -q --now redis-server affine-web
msg_ok "Created Services"
msg_info "Creating Admin User"
+1
View File
@@ -52,6 +52,7 @@ server {
server {
listen 8443 ssl;
server_name _;
absolute_redirect off;
ssl_certificate /etc/ssl/certs/bentopdf-selfsigned.crt;
ssl_certificate_key /etc/ssl/private/bentopdf-selfsigned.key;
root /opt/bentopdf/dist;
+3 -7
View File
@@ -66,16 +66,12 @@ setup_alpine() {
$STD rc-update add docker default
msg_ok "Installed Docker"
DOCKER_COMPOSE_LATEST_VERSION=$(get_latest_github_release "docker/compose" false)
prompt="${var_docker_compose:-}"
[[ -n "$prompt" ]] || read -r -p "${TAB3}Would you like to add Docker Compose? <y/N> " prompt || true
if [[ "${prompt,,}" =~ ^(y|yes|true)$ ]]; then
msg_info "Installing Docker Compose $DOCKER_COMPOSE_LATEST_VERSION"
DOCKER_CONFIG=${DOCKER_CONFIG:-$HOME/.docker}
mkdir -p "$DOCKER_CONFIG"/cli-plugins
curl -fsSL https://github.com/docker/compose/releases/download/"$DOCKER_COMPOSE_LATEST_VERSION"/docker-compose-linux-$(arch_resolve "x86_64" "aarch64") -o ~/.docker/cli-plugins/docker-compose
chmod +x "$DOCKER_CONFIG"/cli-plugins/docker-compose
msg_ok "Installed Docker Compose $DOCKER_COMPOSE_LATEST_VERSION"
msg_info "Installing Docker Compose"
$STD apk add docker-cli-compose
msg_ok "Installed Docker Compose $(docker compose version --short)"
fi
prompt="${var_docker_socket:-}"
[[ -n "$prompt" ]] || read -r -p "${TAB3}Would you like to expose the Docker TCP socket? <y/N> " prompt || true
+1 -7
View File
@@ -21,15 +21,9 @@ $STD apk add \
msg_ok "Installed Dependencies"
msg_info "Installing Docker & Compose"
$STD apk add docker
$STD apk add docker docker-cli-compose
$STD rc-service docker start
$STD rc-update add docker default
DOCKER_COMPOSE_LATEST_VERSION=$(get_latest_github_release "docker/compose" false)
DOCKER_CONFIG=${DOCKER_CONFIG:-$HOME/.docker}
mkdir -p $DOCKER_CONFIG/cli-plugins
curl -fsSL https://github.com/docker/compose/releases/download/$DOCKER_COMPOSE_LATEST_VERSION/docker-compose-linux-$(arch_resolve "x86_64" "aarch64") -o ~/.docker/cli-plugins/docker-compose
chmod +x $DOCKER_CONFIG/cli-plugins/docker-compose
msg_ok "Installed Docker & Compose"
msg_info "Fetching NPMplus"