a cache for slack profile pictures and emojis

chore: update workflow to deploy to terebithia

dunkirk.sh bdd03dab 662896ee

verified
Changed files
+10 -4
.github
workflows
+10 -4
.github/workflows/deploy.yaml
···
+
name: Deploy Cachet
+
on:
push:
branches:
- main
workflow_dispatch:
+
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
+
- name: Setup Tailscale
uses: tailscale/github-action@v3
with:
···
oauth-secret: ${{ secrets.TS_OAUTH_SECRET }}
tags: tag:ci
use-cache: "true"
+
- name: Configure SSH
run: |
mkdir -p ~/.ssh
echo "StrictHostKeyChecking no" >> ~/.ssh/config
+
- name: Deploy to server
run: |
-
ssh kierank@ember << 'EOF'
-
cd ~/cachet
+
ssh cachet@terebithia << 'EOF'
+
cd /var/lib/cachet/app
git fetch --all
git reset --hard origin/main
-
~/.bun/bin/bun install
-
sudo /usr/bin/systemctl restart cachet.service
+
bun install
+
sudo systemctl restart cachet.service
EOF
- name: Wait for service to start