Skip to content

feat(ci): homelab deploy #2

feat(ci): homelab deploy

feat(ci): homelab deploy #2

Workflow file for this run

name: Homelab Deploy
on:
push:
branches:
- main
release:
types:
- published
pull_request:
workflow_dispatch:
permissions:
contents: read
id-token: write
jobs:
homelab-deploy:
runs-on: ubuntu-latest
env:
MACHINE: duet-ubuntu
steps:
- name: Tailscale
uses: tailscale/github-action@v2
with:
oauth-client-id: ${{ secrets.TS_OAUTH_CLIENT_ID }}
oauth-secret: ${{ secrets.TS_OAUTH_SECRET }}
tags: tag:ci
- run: |
MACHINE_IP="$(tailscale ip -6 $MACHINE)"
ssh -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null duyet@$MACHINE_IP
NODE_VERSION=v22.5.1 /home/duyet/.nvm/nvm-exec yarn build
sudo systemctl restart clickhouse-monitoring.service
exit