Lets the test deploy work with group write access
`scp -r dist/.` also sets the mode of the target folder, which only its owner may do. Copying the contents (`dist/*`, with dotglob for hidden files) leaves the folder itself alone, so group write access on the test folder is enough. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -196,7 +196,12 @@ jobs:
|
||||
fi
|
||||
mkdir -p '$DEPLOY_PATH'
|
||||
find '$DEPLOY_PATH' -mindepth 1 -delete"
|
||||
sshpass -e scp -P "$SSH_PORT" -o StrictHostKeyChecking=accept-new -r dist/. "$SSH_USER@$SSH_HOST:$DEPLOY_PATH/"
|
||||
# De inhoud kopiëren (dist/*), niet de map zelf (dist/.): dan probeert
|
||||
# scp de rechten van de doelmap niet te zetten, wat alleen de eigenaar
|
||||
# mag. Zo zijn groeps-schrijfrechten op de doelmap genoeg.
|
||||
# dotglob: ook bestanden die met een punt beginnen gaan mee.
|
||||
shopt -s dotglob
|
||||
sshpass -e scp -P "$SSH_PORT" -o StrictHostKeyChecking=accept-new -r dist/* "$SSH_USER@$SSH_HOST:$DEPLOY_PATH/"
|
||||
echo "Gedeployd naar test: ${GITHUB_REF_NAME} (${GITHUB_SHA::7})"
|
||||
|
||||
- name: Controle na deploy
|
||||
|
||||
Reference in New Issue
Block a user