Skip to content

Remove prune

Remove prune #10

name: Deploy to staging EC2
on:
push:
branches:
- staging
pull_request:
branches:
- staging
types: [opened, synchronize, reopened]
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Setup SSH
uses: webfactory/ssh-agent@v0.5.3
with:
ssh-private-key: ${{ secrets.STAGING_EC2_SSH_PRIVATE_KEY }}
- name: SSH and Deploy to EC2
run: |
ssh -o StrictHostKeyChecking=no ec2-user@3.108.64.73 << 'EOF'
docker kill $(docker ps -q)
cd /home/ec2-user/danswer
git fetch origin staging
git reset --hard FETCH_HEAD
cd /home/ec2-user/danswer/deployment/docker_compose
source .env
docker compose -p danswer-stack -f docker-compose.prod.yml up -d --pull always --force-recreate
EOF