30 lines
871 B
YAML
30 lines
871 B
YAML
# 러너 동작 확인용 임시 워크플로우 — deploy.yml과 동일한 스텝, 이름만 다름
|
|
name: CI Test
|
|
|
|
on:
|
|
push:
|
|
branches: [main]
|
|
|
|
env:
|
|
DEPLOY_DIR: /home/deploy/stacks/_clients/blog_report
|
|
|
|
jobs:
|
|
test:
|
|
runs-on: deploy
|
|
steps:
|
|
- name: Pull latest code
|
|
run: |
|
|
cd "$DEPLOY_DIR"
|
|
git remote set-url origin "https://gitea-actions:${{ github.token }}@git.wandergo.net/partnership/blog_report.git"
|
|
git fetch origin main
|
|
git reset --hard origin/main
|
|
|
|
- name: Check env files exist
|
|
run: |
|
|
cd "$DEPLOY_DIR"
|
|
test -f .env || { echo "ERROR: $DEPLOY_DIR/.env 가 없습니다"; exit 1; }
|
|
test -f frontend/.env.production || { echo "ERROR: frontend/.env.production 이 없습니다"; exit 1; }
|
|
|
|
- name: Docker check
|
|
run: docker compose version
|