-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (31 loc) · 1020 Bytes
/
deploy_ai.yml
File metadata and controls
38 lines (31 loc) · 1020 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
name: Deploy EverTale_AI
on:
push:
branches: [ develop ]
permissions:
contents: read
jobs:
deploy:
runs-on: ubuntu-latest
steps:
# 1. 코드 체크아웃
- name: Checkout
uses: actions/checkout@v3
# 2 .env 파일 생성
- name: Create .env file
run: |
echo "${{ secrets.FASTAPI_ENV }}" > .env
shell: bash
# 3. DockerHub 로그인 & 이미지 빌드/푸시
- name: Docker build & push
run: |
echo "${{ secrets.DOCKER_PASSWORD }}" | docker login -u "${{ secrets.DOCKER_USERNAME }}" --password-stdin
docker build -t ${{ secrets.DOCKER_REPO }}:latest .
docker push ${{ secrets.DOCKER_REPO }}:latest
# 4. Infra 워크플로 트리거
# - name: Trigger EverTale-infra workflow
# uses: peter-evans/repository-dispatch@v3
# with:
# token: ${{ secrets.REPO_ACCESS_TOKEN }}
# repository: DropThe8bit/EverTale-infra
# event-type: trigger-from-ai