update databaseConfig.test.ts #117
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Update demo website | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
concurrency: | |
group: update_demo_website | |
cancel-in-progress: true | |
steps: | |
- uses: actions/checkout@v2 | |
- run: | | |
mkdir .ssh | |
echo "${{ secrets.VPS_PRIVATE_KEY }}" > key | |
chmod 700 key | |
ssh -o "StrictHostKeyChecking no" -i key ${{ secrets.VPS_LOGIN }} " | |
sudo docker-compose up --build --force-recreate --detach | |
sudo docker system prune --all --force | |
" | |
rm key |