t2를 개별 프로브 잡 3개로 분리, 완료된 테스트 워크플로우 정리
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
@@ -1,29 +0,0 @@
|
|||||||
# 러너 동작 확인용 임시 워크플로우 — 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
|
|
||||||
@@ -1,13 +0,0 @@
|
|||||||
# 이름/잡ID 가설 확인용 — deploy.yml과 동일한 이름 구조, 스텝은 echo만
|
|
||||||
name: Deploy2
|
|
||||||
|
|
||||||
on:
|
|
||||||
push:
|
|
||||||
branches: [main]
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
deploy:
|
|
||||||
runs-on: deploy
|
|
||||||
steps:
|
|
||||||
- name: Hello
|
|
||||||
run: echo "job id deploy works"
|
|
||||||
@@ -1,19 +0,0 @@
|
|||||||
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
|
|
||||||
+15
-7
@@ -1,4 +1,4 @@
|
|||||||
name: T2 env check step
|
name: T2 probes
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
@@ -8,11 +8,19 @@ env:
|
|||||||
DEPLOY_DIR: /home/deploy/stacks/_clients/blog_report
|
DEPLOY_DIR: /home/deploy/stacks/_clients/blog_report
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
t2:
|
a-root-env-exists:
|
||||||
runs-on: deploy
|
runs-on: deploy
|
||||||
steps:
|
steps:
|
||||||
- name: Check env files exist
|
- run: test -f "$DEPLOY_DIR/.env"
|
||||||
run: |
|
|
||||||
cd "$DEPLOY_DIR"
|
b-frontend-env-exists:
|
||||||
test -f .env || { echo "ERROR: $DEPLOY_DIR/.env 가 없습니다"; exit 1; }
|
runs-on: deploy
|
||||||
test -f frontend/.env.production || { echo "ERROR: frontend/.env.production 이 없습니다"; exit 1; }
|
steps:
|
||||||
|
- run: test -f "$DEPLOY_DIR/frontend/.env.production"
|
||||||
|
|
||||||
|
c-brace-korean-syntax:
|
||||||
|
runs-on: deploy
|
||||||
|
steps:
|
||||||
|
- run: |
|
||||||
|
true || { echo "ERROR: 파일이 없습니다"; exit 1; }
|
||||||
|
echo ok
|
||||||
|
|||||||
@@ -1,12 +0,0 @@
|
|||||||
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