Skip to content

Commit

Permalink
🚀 Deploy Files Update
Browse files Browse the repository at this point in the history
Related:
  • Loading branch information
L-U-Ready committed Nov 19, 2024
1 parent a78409e commit 8e5f99a
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,12 +53,17 @@ jobs:
username: ec2-user
key: ${{ secrets.EC2_PRIVATE_KEY }}
script: |
# Remove existing directory if it exists
if [ -d "/home/ec2-user/docker-compose.yml" ]; then
rm -rf /home/ec2-user/docker-compose.yml
fi
# Install jq if not already installed
if ! command -v jq &> /dev/null
then
sudo yum install -y jq
fi
# Set up Docker Compose on EC2 if not installed
if ! command -v docker-compose &> /dev/null
then
Expand Down

0 comments on commit 8e5f99a

Please sign in to comment.