ci: prod 배포 build-once GitOps 전환 — gitops-update-prod 추가, ECS 제거 - #59
Merged
Conversation
- push-image: feat 전용(build-once, main 재빌드 중단) - deploy-prod(ECS) 제거 — prod ALB weight 100% EKS(원본 ECS-4편 보존) - gitops-update-prod 추가: SRC_SHA(HEAD^2||HEAD) → crane copy dev→prod(재빌드 X) → values-prod.yaml 태그 PR(사람 게이트). 결정 C(없으면 skip) + 계층화 Slack - crane = imjasonh/setup-crane@v0.6 SHA 핀 Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
|
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.




🔎개요
prod 배포를 ECS 직접배포에서 build-once GitOps 승격으로 전환한다. main push 시 ECS task def를 갱신하던
deploy-prod(ECS) job을 제거하고, dev에서 빌드된 이미지를 crane copy로 prod 리포에 승격(재빌드 X) 후values-prod.yaml태그를 바꾸는 PR을 자동 생성하는gitops-update-prodjob을 추가한다. ([2-2]+[2-4]+[2-7])📝작업 내용
deploy-prod(ECS) 제거 — 원본 코드는 블로그 ECS-4편 보존.gitops-update-prod추가 (main push 한정):SRC_SHA = git rev-parse HEAD^2 || HEAD(머지커밋 2nd parent = dev 이미지를 빌드한 feat tip),fetch-depth: 2farmily-api-dev:dev-<SRC_SHA>→farmily-api:prod-<SRC_SHA>(재빌드 X·동일 digest). IAM =farmily-cicd-backend-role의farmily-api*와일드카드(추가 IAM 0)peter-evans/create-pull-request@v7, 봇 명의) — dev=직접커밋과 대비imjasonh/setup-crane@v0.6(SHA 핀)👀변경 사항
gitops-update-prod가 처음 돎 — 변경이.github/workflows/뿐이라app_changed=false→ 조용히 skip(spurious prod PR 안 생김). 첫 실행 로그로 확인 필요.prod-app-service(weight 0 standby)는 코드 제거와 별개로 계속 구동 — 실자원 내림(Terraform desired=0/destroy)은 후속.AWS_ROLE_ARN,GITOPS_APP_ID,GITOPS_APP_PRIVATE_KEY,SLACK_WEBHOOK_URL(등록 완료).#️⃣관련 이슈