fix (api): debug current session query #43
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
on: | |
push: | |
branches: | |
- main | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- name: copy ssh key | |
run: | | |
mkdir -p ~/.ssh | |
echo -e "${{ secrets.SSH_PRIVATE_KEY }}" > ~/.ssh/id_rsa | |
chmod 600 ~/.ssh/id_rsa | |
echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config | |
- name: pull repository and run docker | |
run: | | |
ssh root@${{ secrets.SERVER_ADDRESS }} <<"ENDSSH" | |
mkdir -p /root/apps/cloud | |
ssh-keyscan -t ed25519 github.com >> /root/.ssh/known_hosts | |
cd /root/apps/cloud | |
git pull || git clone -b main --single-branch git@github.com:glencoden/looney.git . | |
echo "${{ secrets.ENV }}" > .env | |
docker compose down | |
docker compose up -d --build | |
docker system prune -f | |
ENDSSH |