diff --git a/.github/workflows/jekyll-docker.yml b/.github/workflows/jekyll-docker.yml index c35cdc0..d3d54f1 100644 --- a/.github/workflows/jekyll-docker.yml +++ b/.github/workflows/jekyll-docker.yml @@ -1,11 +1,8 @@ name: Build and Deploy to GitHub Pages on: - push: - branches: [ "main" ] - workflow_run: - workflows: ["Translate new posts to English"] - types: [completed] + pull_request: + types: [closed] # GitHub Pages에 배포하기 위한 권한 설정 permissions: @@ -20,7 +17,7 @@ concurrency: jobs: build: - if: ${{ github.event_name == 'push' || (github.event_name == 'workflow_run' && github.event.workflow_run.conclusion == 'success') }} + if: ${{ github.event.pull_request.merged == true && github.event.pull_request.base.ref == 'main' }} runs-on: ubuntu-latest steps: @@ -46,7 +43,7 @@ jobs: url: ${{ steps.deployment.outputs.page_url }} runs-on: ubuntu-latest needs: build - if: ${{ github.event_name == 'push' || (github.event_name == 'workflow_run' && github.event.workflow_run.conclusion == 'success') }} + if: ${{ github.event.pull_request.merged == true && github.event.pull_request.base.ref == 'main' }} steps: - name: Deploy to GitHub Pages diff --git a/.github/workflows/translate-to-english.yml b/.github/workflows/translate-to-english.yml index 3910693..db166b2 100644 --- a/.github/workflows/translate-to-english.yml +++ b/.github/workflows/translate-to-english.yml @@ -1,21 +1,20 @@ name: Translate new posts to English on: - pull_request_target: - types: [closed] + pull_request: + types: [opened, synchronize, reopened] permissions: contents: write jobs: translate: - if: github.event.pull_request.merged == true && github.event.pull_request.base.ref == 'main' runs-on: ubuntu-latest steps: - - name: Checkout main + - name: Checkout PR branch uses: actions/checkout@v4 with: - ref: main + ref: ${{ github.head_ref }} - name: Get changed files from PR id: changes diff --git a/_posts/2025-07-03-actions-runner-controller.md b/_posts/2025-07-03-actions-runner-controller.md index d7a918f..6dec20a 100644 --- a/_posts/2025-07-03-actions-runner-controller.md +++ b/_posts/2025-07-03-actions-runner-controller.md @@ -285,4 +285,3 @@ docker run -it \ ARC를 사용하면 GitHub에서 제공하는 Runner를 사용할 때의 비싼 비용 문제와, 직접 VM을 관리하며 Runner를 운영할 때의 비효율성을 모두 해결할 수 있습니다. 특히 GPU가 필요하거나, 복잡한 의존성을 가진 MLOps CI/CD 환경을 구축할 때 ARC는 매우 강력한 도구가 됩니다. 초기 설정 과정이 다소 복잡하게 느껴질 수 있지만, 한번 구축해두면 CI/CD 비용을 크게 절감하고 운영 부담을 덜어주므로 MLOps를 고민하고 있다면 꼭 한번 도입을 검토해보시길 바랍니다. -