Files
insurance/.gitea/workflows/deploy.yml
T
chpark fc63746728
Deploy / deploy (push) Failing after 0s
ci: runs-on ubuntu-latest (host runner 라벨)
2026-04-23 01:23:43 +09:00

36 lines
903 B
YAML

name: Deploy
on:
push:
branches: [master, main]
workflow_dispatch:
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Sync repo
run: |
cd /home/chpark
if [ ! -d insurance/.git ]; then
git clone https://git.junggomoa.com/chpark/insurance.git
fi
cd insurance
git fetch origin
git reset --hard "origin/${GITHUB_REF##*/}"
- name: Deploy to k3s
run: |
cd /home/chpark/insurance
chmod +x scripts/deploy-remote.sh
bash scripts/deploy-remote.sh
- name: Show status
if: always()
run: |
export KUBECONFIG=/home/chpark/.kube/config
kubectl -n insurance get pods,svc 2>&1 || true
echo ""
echo "🚀 Web: https://insurance.junggomoa.com"
echo "🔌 API: https://api.insurance.junggomoa.com"