From 4b372f82082ff20b7ae45cb5211374d9131ffe18 Mon Sep 17 00:00:00 2001 From: cialloo Date: Thu, 2 Oct 2025 15:48:55 +0800 Subject: [PATCH] Refactor CD workflow by removing kubectl and envsubst installation steps for streamlined deployment --- .github/workflows/cd.yml | 20 ++++---------------- 1 file changed, 4 insertions(+), 16 deletions(-) diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml index b3f0b69..b503262 100644 --- a/.github/workflows/cd.yml +++ b/.github/workflows/cd.yml @@ -50,27 +50,15 @@ jobs: - name: Checkout code uses: actions/checkout@v4 - # Step 2: Install kubectl (Kubernetes CLI tool) - - name: Install kubectl - uses: azure/setup-kubectl@v4 - with: - version: 'latest' - - # Step 3: Install envsubst (for environment variable substitution) - - name: Install envsubst - run: | - sudo apt-get update - sudo apt-get install -y gettext-base - - # Step 4: Make CD script executable + # Step 2: Make CD script executable - name: Make CD script executable run: chmod +x script/cd.sh - # Step 5: Deploy to Kubernetes + # Step 3: Deploy to Kubernetes - name: Deploy to Kubernetes run: ./script/cd.sh deploy - # Step 6: Output deployment summary + # Step 4: Output deployment summary - name: Deployment Summary if: success() run: | @@ -85,7 +73,7 @@ jobs: echo "" >> $GITHUB_STEP_SUMMARY echo "**Deployment Time:** $(date -u +'%Y-%m-%d %H:%M:%S UTC')" >> $GITHUB_STEP_SUMMARY - # Step 7: Output failure message + # Step 5: Output failure message - name: Deployment Failed if: failure() run: |