From 87baec068d5b5ccaf67e5da33334bf6e31fcf929 Mon Sep 17 00:00:00 2001 From: Jisu Hong Date: Sun, 7 Dec 2025 23:00:28 +0900 Subject: [PATCH] Fix CD: Add kubectl apply before set image --- .github/workflows/cd.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml index fbd9ef8..aa29b51 100644 --- a/.github/workflows/cd.yml +++ b/.github/workflows/cd.yml @@ -53,9 +53,9 @@ jobs: - name: Deploy to k3s run: | + kubectl apply -f k8s/ kubectl set image deployment/springboot-app \ - springboot-app=picokosmos/springboot-seminar:${{ github.sha }} \ - --record + springboot-app=picokosmos/springboot-seminar:${{ github.sha }} kubectl rollout status deployment/springboot-app --timeout=5m - name: Verify deployment