From 864a6b1e86ac24b623c05d8a477b7a0377c163f9 Mon Sep 17 00:00:00 2001 From: Eric Gullickson <16152721+ericgullickson@users.noreply.github.com> Date: Sun, 18 Jan 2026 19:35:18 -0600 Subject: [PATCH] fix: sync docker-compose files to staging server during deploy (refs #55) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The staging workflow was not copying docker-compose.yml to the server, causing configuration changes (like Stripe secrets) to not take effect. Added rsync step to sync config, scripts, and compose files before deployment, matching the production workflow behavior. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 --- .gitea/workflows/staging.yaml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.gitea/workflows/staging.yaml b/.gitea/workflows/staging.yaml index c66c04f..0605af5 100644 --- a/.gitea/workflows/staging.yaml +++ b/.gitea/workflows/staging.yaml @@ -95,6 +95,13 @@ jobs: - name: Checkout code uses: actions/checkout@v4 + - name: Sync config, scripts, and compose files to deploy path + run: | + rsync -av --delete "$GITHUB_WORKSPACE/config/" "$DEPLOY_PATH/config/" + rsync -av --delete "$GITHUB_WORKSPACE/scripts/" "$DEPLOY_PATH/scripts/" + cp "$GITHUB_WORKSPACE/docker-compose.yml" "$DEPLOY_PATH/" + cp "$GITHUB_WORKSPACE/docker-compose.staging.yml" "$DEPLOY_PATH/" + - name: Login to registry run: | echo "${{ secrets.REGISTRY_PASSWORD }}" | docker login -u "${{ secrets.REGISTRY_USER }}" --password-stdin "$REGISTRY"