The previous 'always sync' approach failed because it tried to copy files from /workspace/repo/ which doesn't exist on the production server. The SSH heredoc (<<EOF) executes commands ON the production server, not in the Gitea Actions workspace. File paths inside heredoc are relative to the production server's filesystem. This commit adds an scp step BEFORE the SSH heredoc to transfer docker-compose.base.yml and docker-compose.production.yml from the Actions workspace to the production server. This ensures the build: null overrides (commit2e539ed) reach production and services can restart without build context errors. Changes: - Added scp command to deploy docker-compose files before SSH deployment - Changed file sync check from 'cp' to file existence validation - Updated comments to clarify rsync-based deployment architecture Related commits: -0b342c6: Sequential push strategy -08f6f64: Stable git-SHA IMAGE_TAG -2e539ed: build: null overrides -0db73df: Always-sync docker-compose (incorrect implementation) -3091205: Trigger pipeline with source file change
51 KiB
51 KiB