Explorar el Código

fix double quotes issue

Mohammed Nafees hace 3 años
padre
commit
f780c0efd1
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  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
         echo "$VCLUSTER_KUBECONFIG" > /tmp/vcluster_kubeconfig
 
 
         dashboard_domain=$(echo "$DOMAINS" | jq '.subdomains[] | select(test("porter-dashboard*"))')
         dashboard_domain=$(echo "$DOMAINS" | jq '.subdomains[] | select(test("porter-dashboard*"))')
+        dashboard_domain=$(sed -e 's/^"//' -e 's/"$//' <<<"$dashboard_domain")
 
 
         if [ -z "$dashboard_domain" ]; then
         if [ -z "$dashboard_domain" ]; then
           exit 1
           exit 1
         fi
         fi
 
 
-        export PORTER_HOST="$dashboard_domain"
+        export PORTER_HOST="https://${dashboard_domain}"
 
 
         porter connect kubeconfig --kubeconfig /tmp/vcluster_kubeconfig
         porter connect kubeconfig --kubeconfig /tmp/vcluster_kubeconfig
       env:
       env: