From fa71fee57815434da0677d351e4a338641c50fb3 Mon Sep 17 00:00:00 2001 From: rick <1450685+LinuxSuRen@users.noreply.github.com> Date: Wed, 7 Apr 2021 13:02:39 +0000 Subject: [PATCH] Do not publish to bintray which was deprecated Signed-off-by: rick <1450685+LinuxSuRen@users.noreply.github.com> --- .github/workflows/release.yaml | 20 -------------------- .goreleaser.yml | 6 +++--- README.md | 31 ------------------------------- 3 files changed, 3 insertions(+), 54 deletions(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 3c925659..584e75be 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -23,23 +23,3 @@ jobs: args: release --rm-dist env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - - name: Publish to Bintray - run: | - kkver=$(hub tag --list | sort -V | tail -n 1) - echo "start to upload rpm packages" - curl -T bin/kubekey-${kkver}-linux-64bit.rpm -ulinuxsuren:${{ secrets.BINTRAY_TOKEN }} \ - -H "X-Bintray-Package:kk" -H "X-Bintray-Version:${kkver}" \ - https://api.bintray.com/content/kubesphere/rpm/kk/${kkver}/kk-linux-64bit.rpm - curl -T bin/kubekey-${kkver}-linux-arm64.rpm -ulinuxsuren:${{ secrets.BINTRAY_TOKEN }} \ - -H "X-Bintray-Package:kk" -H "X-Bintray-Version:$kkver" \ - https://api.bintray.com/content/kubesphere/rpm/kk/$kkver/kk-linux-arm64.rpm - curl -ulinuxsuren:${{ secrets.BINTRAY_TOKEN }} -X POST https://api.bintray.com/content/kubesphere/rpm/kk/$kkver/publish - - echo "start to upload deb packages" - curl -T bin/kubekey-${kkver}-linux-64bit.deb -ulinuxsuren:${{ secrets.BINTRAY_TOKEN }} \ - -H "X-Bintray-Debian-Distribution:wheezy" -H "X-Bintray-Debian-Component:main" -H "X-Bintray-Debian-Architecture:amd64" \ - https://api.bintray.com/content/kubesphere/deb/kk/$kkver/kk-linux-64bit.deb - curl -T bin/kubekey-${kkver}-linux-arm64.deb -ulinuxsuren:${{ secrets.BINTRAY_TOKEN }} \ - -H "X-Bintray-Debian-Distribution:wheezy" -H "X-Bintray-Debian-Component:main" -H "X-Bintray-Debian-Architecture:amd64" \ - https://api.bintray.com/content/kubesphere/deb/kk/$kkver/kk-linux-arm64.deb - curl -X POST -ulinuxsuren:${{ secrets.BINTRAY_TOKEN }} https://api.bintray.com/content/kubesphere/deb/kk/$kkver/publish diff --git a/.goreleaser.yml b/.goreleaser.yml index 63b1775b..d25b6c47 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -21,7 +21,7 @@ builds: - -s dist: bin archives: -- name_template: "kubekey-{{ .Version }}-{{ .Os }}-{{ .Arch }}" +- name_template: "kubekey-v{{ .Version }}-{{ .Os }}-{{ .Arch }}" replacements: linux: linux amd64: amd64 @@ -32,7 +32,7 @@ archives: checksum: name_template: 'checksums.txt' snapshot: - name_template: "{{ .Tag }}-next-{{.ShortCommit}}" + name_template: "{{ .Version }}-next-{{.ShortCommit}}" changelog: skip: true sort: asc @@ -41,7 +41,7 @@ changelog: - '^docs:' - '^test:' nfpms: - - file_name_template: "kubekey-{{ .Version }}-{{.Os}}-{{.Arch}}" + - file_name_template: "kubekey-v{{ .Version }}-{{.Os}}-{{.Arch}}" homepage: https://github.com/kubesphere/kubekey description: "KubeKey provides a flexible, rapid and convenient way to install Kubernetes only, both Kubernetes and KubeSphere, and related cloud-native add-ons. It is also an efficient tool to scale and upgrade your cluster." maintainer: kubesphere authors diff --git a/README.md b/README.md index ac179cd7..d289ad22 100644 --- a/README.md +++ b/README.md @@ -95,37 +95,6 @@ KubeKey can install Kubernetes and KubeSphere together. The dependency that need > * Docker needs to be installed before building. > * If you have problem to access `https://proxy.golang.org/`, excute `build.sh -p` instead. - ### Create a Cluster #### Quick Start