스텝별 분리 테스트 워크플로우 t1/t2/t3
CI Test / test (push) Failing after 0s
Deploy2 / deploy (push) Successful in 0s
Deploy / deploy (push) Failing after 0s
T1 git pull step / t1 (push) Successful in 0s
T2 env check step / t2 (push) Failing after 0s
T3 docker step / t3 (push) Successful in 0s
CI Test / test (push) Failing after 0s
Deploy2 / deploy (push) Successful in 0s
Deploy / deploy (push) Failing after 0s
T1 git pull step / t1 (push) Successful in 0s
T2 env check step / t2 (push) Failing after 0s
T3 docker step / t3 (push) Successful in 0s
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
name: T1 git pull step
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [main]
|
||||
|
||||
env:
|
||||
DEPLOY_DIR: /home/deploy/stacks/_clients/blog_report
|
||||
|
||||
jobs:
|
||||
t1:
|
||||
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
|
||||
@@ -0,0 +1,18 @@
|
||||
name: T2 env check step
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [main]
|
||||
|
||||
env:
|
||||
DEPLOY_DIR: /home/deploy/stacks/_clients/blog_report
|
||||
|
||||
jobs:
|
||||
t2:
|
||||
runs-on: deploy
|
||||
steps:
|
||||
- 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; }
|
||||
@@ -0,0 +1,12 @@
|
||||
name: T3 docker step
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [main]
|
||||
|
||||
jobs:
|
||||
t3:
|
||||
runs-on: deploy
|
||||
steps:
|
||||
- name: Docker check
|
||||
run: docker compose version
|
||||
Reference in New Issue
Block a user