From a14f14db2774d508026c745646aa0db8fd71f2d1 Mon Sep 17 00:00:00 2001 From: GitHub Actions Date: Sat, 29 Nov 2025 23:57:52 +0000 Subject: [PATCH 1/3] ci: skip creating GitHub Release if it already exists (prevent immutable-release error) --- .github/workflows/auto-versioning.yml | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/.github/workflows/auto-versioning.yml b/.github/workflows/auto-versioning.yml index 030b62c1..1bb8dce4 100644 --- a/.github/workflows/auto-versioning.yml +++ b/.github/workflows/auto-versioning.yml @@ -62,8 +62,22 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + - name: Check for existing GitHub Release + id: check_release + run: | + TAG=${{ steps.create_tag.outputs.tag }} + echo "Checking for release for tag: ${TAG}" + STATUS=$(curl -s -o /dev/null -w "%{http_code}" -H "Authorization: token ${GITHUB_TOKEN}" -H "Accept: application/vnd.github+json" "https://api.github.com/repos/${GITHUB_REPOSITORY}/releases/tags/${TAG}") || true + if [ "${STATUS}" = "200" ]; then + echo "exists=true" >> $GITHUB_OUTPUT + else + echo "exists=false" >> $GITHUB_OUTPUT + fi + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + - name: Create GitHub Release (tag-only, no workspace changes) - if: ${{ steps.semver.outputs.changed }} + if: ${{ steps.semver.outputs.changed && steps.check_release.outputs.exists == 'false' }} uses: softprops/action-gh-release@v1 with: tag_name: ${{ steps.create_tag.outputs.tag }} From b75ed4618a8fb66b3e97e30f28542f3f11c81860 Mon Sep 17 00:00:00 2001 From: GitHub Actions Date: Sun, 30 Nov 2025 00:05:28 +0000 Subject: [PATCH 2/3] feat: update docker-compose configuration for Charon service --- docker-compose.local.yml | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/docker-compose.local.yml b/docker-compose.local.yml index e9f6ecf3..54726059 100644 --- a/docker-compose.local.yml +++ b/docker-compose.local.yml @@ -1,7 +1,7 @@ services: - app: - image: cpmp:local - container_name: cpmp-debug + charon: + image: charon:local + container_name: charon-debug restart: unless-stopped ports: - "80:80" # HTTP (Caddy proxy) @@ -10,18 +10,18 @@ services: - "8080:8080" # Management UI (CPM+) - "2345:2345" # Delve Debugger environment: - - CPM_ENV=development - - CPMP_DEBUG=1 + - CHARON_ENV=development + - CHARON_DEBUG=1 - TZ=America/New_York - - CPM_HTTP_PORT=8080 - - CPM_DB_PATH=/app/data/cpm.db - - CPM_FRONTEND_DIR=/app/frontend/dist - - CPM_CADDY_ADMIN_API=http://localhost:2019 - - CPM_CADDY_CONFIG_DIR=/app/data/caddy - - CPM_CADDY_BINARY=caddy - - CPM_IMPORT_CADDYFILE=/import/Caddyfile - - CPM_IMPORT_DIR=/app/data/imports - - CPM_ACME_STAGING=false + - CHARON_HTTP_PORT=8080 + - CHARON_DB_PATH=/app/data/charon.db + - CHARON_FRONTEND_DIR=/app/frontend/dist + - CHARON_CADDY_ADMIN_API=http://localhost:2019 + - CHARON_CADDY_CONFIG_DIR=/app/data/caddy + - CHARON_CADDY_BINARY=caddy + - CHARON_IMPORT_CADDYFILE=/import/Caddyfile + - CHARON_IMPORT_DIR=/app/data/imports + - CHARON_ACME_STAGING=false extra_hosts: - "host.docker.internal:host-gateway" cap_add: @@ -29,7 +29,7 @@ services: security_opt: - seccomp:unconfined volumes: - - cpm_data_local:/app/data + - charon_data_local:/app/data - caddy_data_local:/data - caddy_config_local:/config - /var/run/docker.sock:/var/run/docker.sock:ro # For local container discovery @@ -45,7 +45,7 @@ services: start_period: 40s volumes: - cpm_data_local: + charon_data_local: driver: local caddy_data_local: driver: local From fc1e37f408a62e5ef39e59715da34b90cdb888f5 Mon Sep 17 00:00:00 2001 From: GitHub Actions Date: Sun, 30 Nov 2025 00:06:50 +0000 Subject: [PATCH 3/3] build: propagate VERSION into frontend build (VITE_APP_VERSION) --- Dockerfile | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Dockerfile b/Dockerfile index 03d04a4b..51dbb0f5 100644 --- a/Dockerfile +++ b/Dockerfile @@ -31,6 +31,11 @@ WORKDIR /app/frontend # Copy frontend package files COPY frontend/package*.json ./ +# Build-time project version (propagated from top-level build-arg) +ARG VERSION=dev +# Make version available to Vite as VITE_APP_VERSION during the frontend build +ENV VITE_APP_VERSION=${VERSION} + # Set environment to bypass native binary requirement for cross-arch builds ENV npm_config_rollup_skip_nodejs_native=1 \ ROLLUP_SKIP_NODEJS_NATIVE=1