-
Notifications
You must be signed in to change notification settings - Fork 1
[SOU-551] 운영 DB 엔드포인트 변경 및 배포 테스트 #224
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,12 +1,7 @@ | ||
| name: prod | ||
|
|
||
| on: | ||
| pull_request: | ||
| branches: | ||
| - main | ||
| push: | ||
| branches: | ||
| - main | ||
| workflow_dispatch: | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 수동 트리거 전환으로 배포 파이프라인이 사실상 멈춥니다. Line 4에서 이벤트를 🔧 제안 수정안 on:
workflow_dispatch:
@@
- name: Upload JAR
- if: github.event_name == 'push'
+ if: ${{ github.event_name == 'push' || github.event_name == 'workflow_dispatch' }}
uses: actions/upload-artifact@v4
@@
docker-build:
needs: build
- if: github.event_name == 'push'
+ if: ${{ github.event_name == 'push' || github.event_name == 'workflow_dispatch' }}
runs-on: ubuntu-latest
@@
deploy:
needs: docker-build
- if: github.event_name == 'push'
+ if: ${{ github.event_name == 'push' || github.event_name == 'workflow_dispatch' }}
runs-on: ubuntu-latest
@@
- name: Deploy to GCP Server
uses: appleboy/ssh-action@v0.1.6
env:
- COMMIT_MSG: ${{ github.event.head_commit.message }}
+ COMMIT_MSG: ${{ github.event.head_commit.message || github.sha }}🤖 Prompt for AI Agents |
||
|
|
||
| env: | ||
| IMAGE_NAME: asia-northeast3-docker.pkg.dev/souzip-488211/souzip-prod-repo/souzip-api:latest | ||
|
|
||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
on을workflow_dispatch만 남기면 이 워크플로우의 이벤트 이름은 항상workflow_dispatch가 되는데, 같은 파일의docker-build/deploy잡은 여전히if: github.event_name == 'push'(44, 74행) 조건이라 수동 실행 시 항상 skip됩니다. 그 결과 이 커밋 이후 prod 파이프라인은 build만 돌고 이미지 푸시와 서버 배포가 전혀 수행되지 않아 운영 배포가 차단되므로,push트리거를 유지하거나 조건식에workflow_dispatch를 포함해야 합니다.Useful? React with 👍 / 👎.