Skip to content

chore: CI latest 태그 제거 및 인프라 레포 이미지 태그 자동 bump (closes #54)#55

Merged
younchanhyeok merged 2 commits into
devfrom
chore/#54-ci-gitops-image-bump
Jun 1, 2026
Merged

chore: CI latest 태그 제거 및 인프라 레포 이미지 태그 자동 bump (closes #54)#55
younchanhyeok merged 2 commits into
devfrom
chore/#54-ci-gitops-image-bump

Conversation

@younchanhyeok
Copy link
Copy Markdown
Contributor

관련 이슈

closes #54

변경 사항

  • ci.yml:latest 태그 빌드·push 라인 제거 (ECR IMMUTABLE 대응)
  • ci.yml — main push 성공 후 DGU-CAP/infra kustomization.yaml의 newTag를 commit SHA로 자동 업데이트

작업 내용 상세

AS-IS

docker build -t ...:$SHA .
docker tag ...:$SHA ...:latest
docker push ...:$SHA
docker push ...:latest   ← ECR IMMUTABLE → CI 실패

TO-BE

docker build -t ...:$SHA .
docker push ...:$SHA     ← SHA 태그만 push

# 이후 infra 레포 자동 bump
git clone DGU-CAP/infra (INFRA_REPO_TOKEN)
kustomize edit set image ...backend=...backend:$SHA
git commit "chore: bump backend image to $SHA"
git push → ArgoCD 감지 → EKS 자동 배포

실행 조건: github.event_name == 'push' && github.ref == 'refs/heads/main' 일 때만 (PR/dev 브랜치에서는 실행 안 함)

토큰 보안: INFRA_REPO_TOKENenv: 블록으로만 주입, 로그 노출 없음

체크리스트

  • ./gradlew build 성공 확인
  • 이상 탐지 임계치 변경이 있다면 application.yml에서만 관리되고 있음
  • 에러 응답 형식 ({ status, message, timestamp }) 준수
  • 민감 정보 (API 키, 비밀번호 등) 코드에 포함되지 않음
  • AI 서버 연동 변경 시 fallback 로직 포함 여부 확인

younchanhyeok and others added 2 commits June 1, 2026 19:18
feat: Pod 목록·토폴로지 API 전체 namespace 조회 지원 (closes #51)
- ECR IMMUTABLE 정책 대응: :latest 태그 빌드/push 제거
- main push 성공 후 DGU-CAP/infra kustomization.yaml의 newTag를
  commit SHA로 자동 업데이트하여 ArgoCD GitOps 자동 배포 완성

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@younchanhyeok younchanhyeok merged commit 5475efd into dev Jun 1, 2026
1 check passed
younchanhyeok added a commit that referenced this pull request Jun 1, 2026
* feat: Pod 목록·토폴로지 API 전체 namespace 조회 지원 (closes #51)

feat: Pod 목록·토폴로지 API 전체 namespace 조회 지원 (closes #51)

* chore: CI latest 태그 제거 및 인프라 레포 이미지 태그 자동 bump (closes #54) (#55)

* feat: Pod 목록·토폴로지 API 전체 namespace 조회 지원 (closes #51) (#53)

feat: Pod 목록·토폴로지 API 전체 namespace 조회 지원 (closes #51)

* chore: CI latest 태그 제거 및 인프라 레포 이미지 태그 자동 bump (closes #54)

- ECR IMMUTABLE 정책 대응: :latest 태그 빌드/push 제거
- main push 성공 후 DGU-CAP/infra kustomization.yaml의 newTag를
  commit SHA로 자동 업데이트하여 ArgoCD GitOps 자동 배포 완성

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

---------

Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>

---------

Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant