Files
hantim-server/.gitea/workflows/provision.yml
T
timothykim 7b1a888db0
Deploy haanmind.net / deploy (push) Failing after 1s
Deploy hantim.net / deploy (push) Failing after 1s
Deploy hcsuzuki.net / deploy (push) Failing after 1s
Deploy nginx / deploy (push) Failing after 1s
Deploy nginx / test (push) Has been skipped
Deploy thekims.family / deploy (push) Failing after 1s
Deploy timothykim.net / deploy (push) Failing after 1s
Provision server / provision (push) Successful in 11s
Deploy garage / deploy (push) Successful in 5s
add workflow_dispatch and self-trigger paths to all workflows
2026-03-20 20:03:11 -04:00

22 lines
568 B
YAML

name: Provision server
on:
workflow_dispatch:
push:
branches: [main]
paths:
- 'scripts/configure.sh'
- '.gitea/workflows/provision.yml'
jobs:
provision:
runs-on: ubuntu-latest
steps:
- name: Provision via SSH
run: |
mkdir -p ~/.ssh
echo "${{ vars.DEPLOY_HOST_KEY }}" > ~/.ssh/known_hosts
echo "${{ secrets.DEPLOY_SSH_KEY }}" > ~/.ssh/deploy_key
chmod 600 ~/.ssh/deploy_key
ssh -o StrictHostKeyChecking=yes -i ~/.ssh/deploy_key deploy@${{ vars.DEPLOY_HOST }} provision