Skip to content

Commit

Permalink
chore : cicd 프로젝트 실행 코드 구현
Browse files Browse the repository at this point in the history
  • Loading branch information
sycuuui committed Mar 22, 2024
1 parent 6b41d85 commit 04484ca
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/github-actions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@ on:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
workflow_run:
workflows: [ "CI/CD using GitHub Actions & Docker" ]
types:
- completed
branches: [ "main" ]
result: failure

permissions:
contents: read
Expand Down Expand Up @@ -36,6 +42,11 @@ jobs:
mkdir -p ./config # config 폴더 생성
echo "${{ secrets.YML }}" > ./config/application.yml # GitHub Secrets에서 설정한 값을 application.yml 파일에 쓰기
# 프로젝트 실행
- name: Run project
run: |
python3 app.py
# Docker 빌드 & 푸시
- name: Docker build & push
if: github.ref == 'refs/heads/main' # 메인 브랜치에 푸시했을 때만 실행
Expand Down

0 comments on commit 04484ca

Please sign in to comment.