From e4b8e61e7f237566320c87b50ef450aabd855779 Mon Sep 17 00:00:00 2001 From: hiondal Date: Mon, 3 Mar 2025 22:17:24 +0900 Subject: [PATCH] Add GitHub Action --- .github/workflows/cicd.yaml | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/.github/workflows/cicd.yaml b/.github/workflows/cicd.yaml index 65840fa..6aa4649 100644 --- a/.github/workflows/cicd.yaml +++ b/.github/workflows/cicd.yaml @@ -62,8 +62,15 @@ jobs: - name: Load environment variables run: | - env_vars=$(cat deployment/deploy_env_vars) - echo "$env_vars" >> $GITHUB_ENV + while IFS= read -r line || [ -n "$line" ]; do + # Skip comments and empty lines + if [[ "$line" =~ ^#.*$ ]] || [[ -z "$line" ]]; then + continue + fi + + # Export the environment variable + echo "$line" >> $GITHUB_ENV + done < deployment/deploy_env_vars - name: Generate image tag id: set_outputs