瀏覽代碼

Merge pull request #77 from porter-dev/staging

Staging
abelanger5 5 年之前
父節點
當前提交
658791c55d
共有 4 個文件被更改,包括 59 次插入33 次删除
  1. 6 13
      .darwin.goreleaser.yml
  2. 7 12
      .goreleaser.yml
  3. 44 5
      README.md
  4. 2 3
      scripts/release.sh

+ 6 - 13
.darwin.goreleaser.yml

@@ -17,19 +17,12 @@ builds:
     hooks:
       post: gon gon.hcl
 archives:
-  - replacements:
+  - format: binary
+    replacements:
       darwin: Darwin
-      linux: Linux
-      windows: Windows
-      386: i386
-      amd64: x86_64
+release:
+  disable: true
 checksum:
-  name_template: 'checksums.txt'
-snapshot:
-  name_template: "{{ .Tag }}-next"
+  disable: true
 changelog:
-  sort: asc
-  filters:
-    exclude:
-      - '^docs:'
-      - '^test:'
+  skip: true

+ 7 - 12
.goreleaser.yml

@@ -16,19 +16,14 @@ builds:
     flags:
       - -tags=cli
 archives:
-  - replacements:
-      darwin: Darwin
+  - format: zip
+    replacements:
       linux: Linux
       windows: Windows
-      386: i386
       amd64: x86_64
-checksum:
-  name_template: 'checksums.txt'
-snapshot:
-  name_template: "{{ .Tag }}-next"
+release:
+  disable: true
+# checksum:
+#   disable: true
 changelog:
-  sort: asc
-  filters:
-    exclude:
-      - '^docs:'
-      - '^test:'
+  skip: true

+ 44 - 5
README.md

@@ -9,21 +9,60 @@ Porter is a **dashboard for Helm** with support for the following features:
 
 ## Quick Start
 
-To view the dashboard locally, download our CLI and grab the latest release via:
+To view the dashboard locally, follow the instructions to install the latest CLI release for [Mac](#mac-installation), [Linux](#linux-installation), or [Windows](#windows-installation). Then, run:
+
+```sh
+porter start
+```
+
+When prompted, enter the admin email/password you would like to use. After the server has started, go to `localhost:8080/login` and **log in with the credentials you just set**. 
+
+### Mac Installation
+
+Run the following command to grab the latest binary:
+
+```sh
+{
+name=$(curl -s https://api.github.com/repos/porter-dev/porter/releases/latest | grep "browser_download_url.*_Darwin_x86_64\.zip" | cut -d ":" -f 2,3 | tr -d \")
+name=$(basename $name)
+curl -L https://github.com/porter-dev/porter/releases/latest/download/$name --output $name
+unzip -a $name
+rm $name
+}
+```
+
+Then move the file into your bin:
 
 ```sh
-curl "https://api.github.com/repos/porter-dev/porter/releases/latest"
 chmod +x ./porter
 sudo mv ./porter /usr/local/bin/porter
 ```
 
-Then run the dashboard (Docker engine must be running on the host machine):
+### Linux Installation
+
+Run the following command to grab the latest binary:
 
 ```sh
-porter start
+{
+name=$(curl -s https://api.github.com/repos/porter-dev/porter/releases/latest | grep "browser_download_url.*_Linux_x86_64\.zip" | cut -d ":" -f 2,3 | tr -d \")
+name=$(basename $name)
+curl -L https://github.com/porter-dev/porter/releases/latest/download/$name --output $name
+unzip -a $name
+rm $name
+}
+```
+
+Then move the file into your bin:
+
+```sh
+chmod +x ./porter
+sudo mv ./porter /usr/local/bin/porter
 ```
 
-When prompted, enter the admin email/password you would like to use. After the server has started, go to `localhost:8080` and **log in with the credentials you just set**. 
+### Windows Installation
+
+Go [here](https://github.com/porter-dev/porter/releases/latest/download/porter_0.1.0-beta.1_Windows_x86_64.zip
+) to download the Windows executable and add the binary to your `PATH`. 
 
 ## Differences from Kubeapps
 

+ 2 - 3
scripts/release.sh

@@ -9,8 +9,7 @@ docker run --rm --privileged \
 -v $PWD:/go/src/github.com/porter-dev/porter \
 -v /var/run/docker.sock:/var/run/docker.sock \
 -w /go/src/github.com/porter-dev/porter \
--e GORELEASER_GITHUB_TOKEN='$GITHUB_TOKEN' \
-mailchain/goreleaser-xcgo "--rm-dist"
+mailchain/goreleaser-xcgo "--rm-dist --skip-validate"
 
 # Step 2 -- build for MacOS using notarization tool
-goreleaser --config .darwin.goreleaser.yml
+goreleaser --rm-dist --config .darwin.goreleaser.yml --skip-validate