Skip to content

Commit 8a47044

Browse files
committed
give pw for sudo deploy script
1 parent ac2de38 commit 8a47044

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/deploy-express-serverside.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ jobs:
4141
cd /home/skuilder
4242
4343
# Execute the deployment script
44-
./deploy-express-minimal-downtime.sh
44+
echo "${{ secrets.SUDO_PASSWORD }}" | sudo -S ./deploy-express-minimal-downtime.sh
4545
4646
echo "=== Deployment completed at $(date) ==="
4747
EOF
@@ -67,12 +67,12 @@ jobs:
6767
6868
if echo "$response" | grep -q "${{ github.SHA }}"; then
6969
echo "Success. Current version found in production"
70-
70+
7171
# Log deployment success
7272
echo "✅ Express API deployed successfully with version ${{ github.SHA }}"
7373
echo "✅ Deployment triggered by: ${{ github.event.inputs.reason || 'Push to master' }}"
7474
echo "✅ Deployment timestamp: $(date -u)"
75-
75+
7676
exit 0
7777
else
7878
echo "Current version not found in production. Retrying..."

0 commit comments

Comments
 (0)