fix: set correct ownership and permissions on deployed files

After rsync, chown to caddy:caddy and chmod 755 on the deploy path
so the web server can serve the files properly.
This commit is contained in:
siujamo
2026-05-20 01:19:40 -05:00
parent a5748a3e2b
commit 48c2eabe97
+1
View File
@@ -33,5 +33,6 @@ deploy:
- ssh-keyscan -H onixbyte.cn >> ~/.ssh/known_hosts - ssh-keyscan -H onixbyte.cn >> ~/.ssh/known_hosts
script: script:
- rsync -avz --delete doc_build/ ${SSH_USER}@onixbyte.cn:${DEPLOY_PATH} - rsync -avz --delete doc_build/ ${SSH_USER}@onixbyte.cn:${DEPLOY_PATH}
- ssh ${SSH_USER}@onixbyte.cn "chown -R caddy:caddy ${DEPLOY_PATH} && chmod -R 755 ${DEPLOY_PATH}"
rules: rules:
- if: $CI_COMMIT_BRANCH == "main" - if: $CI_COMMIT_BRANCH == "main"