Skip to content

Commit

Permalink
Merge pull request #6 from rajatjindal/fix-releaser
Browse files Browse the repository at this point in the history
fix go-releaser archive upload
  • Loading branch information
rothgar authored Nov 4, 2022
2 parents fc49a10 + 86a807c commit 5a7ab31
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Update new version in krew-index
uses: rajatjindal/[email protected]
uses: rajatjindal/[email protected]
12 changes: 11 additions & 1 deletion .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ before:
hooks:
- go mod tidy
builds:
- binary: kubectl-dds
- id: kubectl-dds
binary: kubectl-dds
env:
- CGO_ENABLED=0
goos:
Expand All @@ -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
8 changes: 4 additions & 4 deletions .krew.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 5a7ab31

Please sign in to comment.