Kaynağa Gözat

fix double quotes issue

Mohammed Nafees 3 yıl önce
ebeveyn
işleme
f780c0efd1
1 değiştirilmiş dosya ile 2 ekleme ve 1 silme
  1. 2 1
      .github/workflows/porter_preview_env.yml

+ 2 - 1
.github/workflows/porter_preview_env.yml

@@ -53,12 +53,13 @@ jobs:
         echo "$VCLUSTER_KUBECONFIG" > /tmp/vcluster_kubeconfig
 
         dashboard_domain=$(echo "$DOMAINS" | jq '.subdomains[] | select(test("porter-dashboard*"))')
+        dashboard_domain=$(sed -e 's/^"//' -e 's/"$//' <<<"$dashboard_domain")
 
         if [ -z "$dashboard_domain" ]; then
           exit 1
         fi
 
-        export PORTER_HOST="$dashboard_domain"
+        export PORTER_HOST="https://${dashboard_domain}"
 
         porter connect kubeconfig --kubeconfig /tmp/vcluster_kubeconfig
       env: