Skip to content

Commit

Permalink
fix(cd): fix reboot script
Browse files Browse the repository at this point in the history
  • Loading branch information
goathoon committed May 18, 2024
1 parent ec988de commit 3c7fb6e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/temp-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,12 +45,12 @@ jobs:
username: ec2-user
key: ${{ secrets.NEW_PRIVATE_KEY }}
script: |
cat << EOF > /var/lib/cloud/scripts/per-boot/recover.sh
sudo bash -c 'cat << EOF > /var/lib/cloud/scripts/per-boot/recover.sh
#!/bin/bash
docker restart nginx
docker restart frontend
docker restart backend
EOF
EOF'
chmod +x /var/lib/cloud/scripts/per-boot/recover.sh
Expand Down

0 comments on commit 3c7fb6e

Please sign in to comment.