From 04484cad85643b9d56938a71d4ea8172bd6e8712 Mon Sep 17 00:00:00 2001 From: sycuuui <102959791+sycuuui@users.noreply.github.com> Date: Fri, 22 Mar 2024 12:45:59 +0900 Subject: [PATCH] =?UTF-8?q?chore=20:=20cicd=20=ED=94=84=EB=A1=9C=EC=A0=9D?= =?UTF-8?q?=ED=8A=B8=20=EC=8B=A4=ED=96=89=20=EC=BD=94=EB=93=9C=20=EA=B5=AC?= =?UTF-8?q?=ED=98=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/github-actions.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) 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' # 메인 브랜치에 푸시했을 때만 실행