Skip to content

Commit

Permalink
Add BeforeInstall script to delete .git
Browse files Browse the repository at this point in the history
  • Loading branch information
object-Object committed Jan 2, 2024
1 parent 5d4f7da commit 62ebf77
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
3 changes: 3 additions & 0 deletions appspec.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ hooks:
ApplicationStop:
- location: scripts/aws/application-stop.sh
timeout: 60
BeforeInstall:
- location: scripts/aws/before-install.sh
timeout: 60
AfterInstall:
- location: scripts/aws/after-install.sh
timeout: 300
Expand Down
6 changes: 6 additions & 0 deletions scripts/aws/before-install.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/bin/bash
set -euo pipefail

cd /var/lib/codedeploy-apps/HexBug

rm -rf .git

0 comments on commit 62ebf77

Please sign in to comment.