From 0e1ed93f31ec7e4bc30d39852edc88acc459204b Mon Sep 17 00:00:00 2001 From: Damon To Date: Tue, 16 Jul 2024 17:10:50 +0800 Subject: [PATCH] fix(ci): sudo not found --- .github/workflows/deploy.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index f0589f2..564cdad 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -47,4 +47,4 @@ jobs: chmod 600 $HOME/.ssh/id_ed25519 scp -i $HOME/.ssh/id_ed25519 -o StrictHostKeyChecking=no -P ${{ matrix.server.port }} -r scripts/deploy.sh ${{ matrix.server.user }}@${{ matrix.server.host }}:/opt/estkme-cloud - ssh -i $HOME/.ssh/id_ed25519 -o StrictHostKeyChecking=no ${{ matrix.server.user }}@${{ matrix.server.host }} -p ${{ matrix.server.port }} "sudo /opt/estkme-cloud/deploy.sh '${{ matrix.server.ad }}' && rm -f /opt/estkme-cloud/deploy.sh" + ssh -i $HOME/.ssh/id_ed25519 -o StrictHostKeyChecking=no ${{ matrix.server.user }}@${{ matrix.server.host }} -p ${{ matrix.server.port }} "/opt/estkme-cloud/deploy.sh '${{ matrix.server.ad }}' && rm -f /opt/estkme-cloud/deploy.sh"