Skip to content

Commit

Permalink
ci/cd: replace sudo -> doas
Browse files Browse the repository at this point in the history
  • Loading branch information
kimminss0 committed Jan 11, 2025
1 parent f148230 commit 633284c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/build-and-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -134,9 +134,9 @@ jobs:
script: |
cd /home/${{ env.VPS_USERNAME }}
dir=$(mktemp -d /tmp/${{ env.VPS_USERNAME }}.XXXXXX)
trap 'sudo rm -rf $dir' EXIT
trap 'doas rm -rf $dir' EXIT
tar -xJf bundle.tar.xz -C $dir
sudo chown -R www:www $dir
doas chown -R www:www $dir
# do not preserve time
sudo rsync --checksum --delete -rlpgoDvh $dir/ ${{ env.VPS_WWW_DIR }}/
doas rsync --checksum --delete -rlpgoDvh $dir/ ${{ env.VPS_WWW_DIR }}/
rm bundle.tar.xz

0 comments on commit 633284c

Please sign in to comment.