Skip to content

Commit

Permalink
Update ecs-deploy.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Bukharney authored Oct 1, 2024
1 parent 055fbe8 commit a2966b4
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/ecs-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@ jobs:
USER=${{ secrets.ECS_USER }}
PORT=22
ssh -o StrictHostKeyChecking=no $USER@$HOST mkdir -p /$USER/caddyProxy
scp -o StrictHostKeyChecking=no -P $PORT Caddyfile $USER@$HOST:/$USER/caddyProxy/Caddyfile
scp -o StrictHostKeyChecking=no -P $PORT docker-compose.yml $USER@$HOST:/$USER/caddyProxy/docker-compose.yml
ssh -o StrictHostKeyChecking=no $USER@$HOST mkdir -p /home/$USER/caddyProxy
scp -o StrictHostKeyChecking=no -P $PORT Caddyfile $USER@$HOST:/home/$USER/caddyProxy/Caddyfile
scp -o StrictHostKeyChecking=no -P $PORT docker-compose.yml $USER@$HOST:/home/$USER/caddyProxy/docker-compose.yml
- name: Deploy to ECS
run: |
Expand All @@ -37,6 +37,6 @@ jobs:
PORT=22
ssh -o StrictHostKeyChecking=no $USER@$HOST << 'EOF'
docker compose -f /$USER/caddyProxy/docker-compose.yml down
docker compose -f /$USER/caddyProxy/docker-compose.yml up -d
docker compose -f /home/$USER/caddyProxy/docker-compose.yml down
docker compose -f /home/$USER/caddyProxy/docker-compose.yml up -d
EOF

0 comments on commit a2966b4

Please sign in to comment.