mirror of
https://github.com/dong-nz/cv.git
synced 2026-11-22 16:10:40 +07:00
fix(ci): deploy-infra rsync as three single-path steps (action quotes path input)
First real run 2026-10-23: burnett01/rsync-deployments passes the comma-list path input to rsync as one quoted argument — link_stat "nginx.conf,compose.yaml,deploy/htpasswd" failed, nothing shipped, live container untouched. Apply the spec §4 fallback: one rsync step per file with full remote_* config, -avzR kept. Spec: §4 sketch + inference note resolved, §6 paths-filter risk annotated, §8 rows 2/4 record the run outcome and the re-run-via-dispatch step.
This commit is contained in:
1 parent
85f9e3429c
commit
6d7cae40d4
2 files changed
+35
-10
No files matched your search
@@ -25,11 +25,35 @@ jobs:
|
||||
|
||||
# Ship exactly the three triggered files; -R keeps deploy/htpasswd under
|
||||
# deploy/ in the stack directory. Never .env, never secrets/ (D6).
|
||||
- name: Sync infra files
|
||||
# The action passes `path` to rsync as ONE quoted argument — a comma list
|
||||
# reaches rsync as a single literal filename (first real run 2026-10-23:
|
||||
# link_stat "nginx.conf,compose.yaml,deploy/htpasswd" failed). One step
|
||||
# per file = the spec §4 fallback.
|
||||
- name: Sync nginx.conf
|
||||
uses: burnett01/rsync-deployments@v9
|
||||
with:
|
||||
switches: -avzR
|
||||
path: nginx.conf,compose.yaml,deploy/htpasswd
|
||||
path: nginx.conf
|
||||
remote_path: /opt/stacks/dong-site/
|
||||
remote_host: ${{ secrets.DEPLOY_HOST }}
|
||||
remote_port: ${{ secrets.DEPLOY_SSH_PORT }}
|
||||
remote_user: ${{ secrets.DEPLOY_USER }}
|
||||
remote_key: ${{ secrets.DEPLOY_SSH_PRIVATE_KEY }}
|
||||
- name: Sync compose.yaml
|
||||
uses: burnett01/rsync-deployments@v9
|
||||
with:
|
||||
switches: -avzR
|
||||
path: compose.yaml
|
||||
remote_path: /opt/stacks/dong-site/
|
||||
remote_host: ${{ secrets.DEPLOY_HOST }}
|
||||
remote_port: ${{ secrets.DEPLOY_SSH_PORT }}
|
||||
remote_user: ${{ secrets.DEPLOY_USER }}
|
||||
remote_key: ${{ secrets.DEPLOY_SSH_PRIVATE_KEY }}
|
||||
- name: Sync deploy/htpasswd
|
||||
uses: burnett01/rsync-deployments@v9
|
||||
with:
|
||||
switches: -avzR
|
||||
path: deploy/htpasswd
|
||||
remote_path: /opt/stacks/dong-site/
|
||||
remote_host: ${{ secrets.DEPLOY_HOST }}
|
||||
remote_port: ${{ secrets.DEPLOY_SSH_PORT }}
|
||||
|
||||
Reference in new issue
Block a user