From 86a807cfc9d59486736aab5a5ec53560ccbbd22c Mon Sep 17 00:00:00 2001 From: Rajat Jindal Date: Fri, 4 Nov 2022 06:34:06 +0530 Subject: [PATCH] fix go-releaser archive upload Signed-off-by: Rajat Jindal --- .github/workflows/release.yml | 2 +- .goreleaser.yaml | 12 +++++++++++- .krew.yaml | 8 ++++---- 3 files changed, 16 insertions(+), 6 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index e7d3884..191adb8 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -21,4 +21,4 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - name: Update new version in krew-index - uses: rajatjindal/krew-release-bot@v0.0.43 + uses: rajatjindal/krew-release-bot@v0.0.43 \ No newline at end of file diff --git a/.goreleaser.yaml b/.goreleaser.yaml index e777258..7047a6f 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -2,7 +2,8 @@ before: hooks: - go mod tidy builds: - - binary: kubectl-dds + - id: kubectl-dds + binary: kubectl-dds env: - CGO_ENABLED=0 goos: @@ -25,3 +26,12 @@ changelog: exclude: - '^docs:' - '^test:' + +archives: +- builds: + - kubectl-dds + name_template: "{{ .ProjectName }}_{{ .Tag }}_{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}" + wrap_in_directory: false + format: tar.gz + files: + - LICENSE \ No newline at end of file diff --git a/.krew.yaml b/.krew.yaml index 1ffa1db..021ae97 100644 --- a/.krew.yaml +++ b/.krew.yaml @@ -17,7 +17,7 @@ spec: matchLabels: os: darwin arch: amd64 - {{addURIAndSha "https://github.com/aws-containers/kubectl-detector-for-docker-socket/releases/download/{{ .TagName }}/kubectl-detector-for-docker-socket_{{ .TagName | replace "v" "" }}_darwin_amd64.tar.gz" .TagName }} + {{addURIAndSha "https://github.com/aws-containers/kubectl-detector-for-docker-socket/releases/download/{{ .TagName }}/kubectl-detector-for-docker-socket_{{ .TagName }}_darwin_amd64.tar.gz" .TagName }} bin: "./kubectl-dds" files: - from: kubectl-dds @@ -28,7 +28,7 @@ spec: matchLabels: os: darwin arch: arm64 - {{addURIAndSha "https://github.com/aws-containers/kubectl-detector-for-docker-socket/releases/download/{{ .TagName }}/kubectl-detector-for-docker-socket_{{ .TagName | replace "v" "" }}_darwin_arm64.tar.gz" .TagName }} + {{addURIAndSha "https://github.com/aws-containers/kubectl-detector-for-docker-socket/releases/download/{{ .TagName }}/kubectl-detector-for-docker-socket_{{ .TagName }}_darwin_arm64.tar.gz" .TagName }} bin: "./kubectl-dds" files: - from: kubectl-dds @@ -39,7 +39,7 @@ spec: matchLabels: os: linux arch: amd64 - {{addURIAndSha "https://github.com/aws-containers/kubectl-detector-for-docker-socket/releases/download/{{ .TagName }}/kubectl-detector-for-docker-socket_{{ .TagName | replace "v" "" }}_linux_amd64.tar.gz" .TagName }} + {{addURIAndSha "https://github.com/aws-containers/kubectl-detector-for-docker-socket/releases/download/{{ .TagName }}/kubectl-detector-for-docker-socket_{{ .TagName }}_linux_amd64.tar.gz" .TagName }} bin: "./kubectl-dds" files: - from: kubectl-dds @@ -50,7 +50,7 @@ spec: matchLabels: os: windows arch: amd64 - {{addURIAndSha "https://github.com/aws-containers/kubectl-detector-for-docker-socket/releases/download/{{ .TagName }}/kubectl-detector-for-docker-socket_{{ .TagName | replace "v" "" }}_windows_amd64.tar.gz" .TagName }} + {{addURIAndSha "https://github.com/aws-containers/kubectl-detector-for-docker-socket/releases/download/{{ .TagName }}/kubectl-detector-for-docker-socket_{{ .TagName }}_windows_amd64.tar.gz" .TagName }} bin: "./kubectl-dds.exe" files: - from: kubectl-dds.exe