Преглед изворни кода

Merge pull request #2698 from porter-dev/nafees/fix-readme-license

[hotfix] Fix MIT license badge in README
Mohammed Nafees пре 3 година
родитељ
комит
09066726be
2 измењених фајлова са 3 додато и 2 уклоњено
  1. 2 1
      .github/workflows/porter_preview_env.yml
  2. 1 1
      README.md

+ 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:

+ 1 - 1
README.md

@@ -1,6 +1,6 @@
 # Porter
 
-[![MIT License](https://img.shields.io/apm/l/atomic-design-ui.svg?)](https://github.com/tterb/atomic-design-ui/blob/master/LICENSEs) [![Go Report Card](https://goreportcard.com/badge/gojp/goreportcard)](https://goreportcard.com/report/github.com/porter-dev/porter) [![Discord](https://img.shields.io/discord/542888846271184896?color=7389D8&label=community&logo=discord&logoColor=ffffff)](https://discord.gg/mmGAw5nNjr)
+[![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](https://opensource.org/licenses/MIT) [![Go Report Card](https://goreportcard.com/badge/gojp/goreportcard)](https://goreportcard.com/report/github.com/porter-dev/porter) [![Discord](https://img.shields.io/discord/542888846271184896?color=7389D8&label=community&logo=discord&logoColor=ffffff)](https://discord.gg/mmGAw5nNjr)
 [![Twitter](https://img.shields.io/twitter/url/https/twitter.com/cloudposse.svg?style=social&label=Follow)](https://twitter.com/getporterdev)
 
 **Porter is a Kubernetes-powered PaaS that runs in your own cloud provider.** Porter brings the Heroku experience to your own AWS/GCP account, while upgrading your infrastructure to Kubernetes. Get started on Porter without the overhead of DevOps and customize your infrastructure later when you need to.