diff --git a/.github/workflows/github-actions.yml b/.github/workflows/github-actions.yml index 45cc4b2..7dcf735 100644 --- a/.github/workflows/github-actions.yml +++ b/.github/workflows/github-actions.yml @@ -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 @@ -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' # 메인 브랜치에 푸시했을 때만 실행