Skip to content

Commit

Permalink
CI/CD push updates
Browse files Browse the repository at this point in the history
  • Loading branch information
barualee committed Nov 22, 2024
1 parent 1c7de22 commit 78ee221
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/terraform.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ jobs:
run: |
echo "Deploying to EC2 instance at IP: $INSTANCE_IP"
echo "$ENV_FILE" > .env
echo "$ENV_FILE" > env
echo "$SSH_PRIVATE_KEY" > temp_key.pem
chmod 400 temp_key.pem
Expand All @@ -90,6 +90,7 @@ jobs:
# SSH into the EC2 instance and build & run the Docker container
ssh -o StrictHostKeyChecking=no -i temp_key.pem ubuntu@$INSTANCE_IP << 'EOF'
cd /home/ubuntu/app/
sudo mv env .env
sudo snap install docker
# Run the Docker container using Docker Compose
sleep 5
Expand Down

0 comments on commit 78ee221

Please sign in to comment.