ci-test: deploy.yml 스텝 복제 + 잡ID 가설 테스트 워크플로우
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
# 러너 동작 확인용 임시 워크플로우 — 확인 후 삭제 예정
|
# 러너 동작 확인용 임시 워크플로우 — deploy.yml과 동일한 스텝, 이름만 다름
|
||||||
name: CI Test
|
name: CI Test
|
||||||
|
|
||||||
on:
|
on:
|
||||||
@@ -12,12 +12,18 @@ jobs:
|
|||||||
test:
|
test:
|
||||||
runs-on: deploy
|
runs-on: deploy
|
||||||
steps:
|
steps:
|
||||||
- name: Env check
|
- name: Pull latest code
|
||||||
run: |
|
run: |
|
||||||
echo "DEPLOY_DIR=$DEPLOY_DIR"
|
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: Token check
|
- name: Check env files exist
|
||||||
run: |
|
run: |
|
||||||
echo "token length: ${#GH_TOKEN}"
|
cd "$DEPLOY_DIR"
|
||||||
env:
|
test -f .env || { echo "ERROR: $DEPLOY_DIR/.env 가 없습니다"; exit 1; }
|
||||||
GH_TOKEN: ${{ github.token }}
|
test -f frontend/.env.production || { echo "ERROR: frontend/.env.production 이 없습니다"; exit 1; }
|
||||||
|
|
||||||
|
- name: Docker check
|
||||||
|
run: docker compose version
|
||||||
|
|||||||
@@ -0,0 +1,13 @@
|
|||||||
|
# 이름/잡ID 가설 확인용 — deploy.yml과 동일한 이름 구조, 스텝은 echo만
|
||||||
|
name: Deploy2
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches: [main]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
deploy:
|
||||||
|
runs-on: deploy
|
||||||
|
steps:
|
||||||
|
- name: Hello
|
||||||
|
run: echo "job id deploy works"
|
||||||
Reference in New Issue
Block a user