Skip to content

Commit

Permalink
Add packaged release charts to github releases
Browse files Browse the repository at this point in the history
Compile release binaries only for linux amd & arm

Change release binary name format to match previous one

Signed-off-by: Alexandre Lamarre <alexandre.lamarre@suse.com>
  • Loading branch information
alexandreLamarre committed May 14, 2024
1 parent daa3426 commit 0ff28c5
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ jobs:
- uses: actions/setup-go@v5
with:
go-version: 1.22
- name : Package release helm charts
run : make package-helm
- run : mkdir -p ./build/artifacts/ && mv -v ./dist/artifacts/ ./build/
- uses: goreleaser/goreleaser-action@v5
with:
distribution: goreleaser
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
/.cache
/bin
/dist
/build
*.swp
.idea
./backup
Expand Down
8 changes: 5 additions & 3 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@ builds:
main: ./main.go
goos:
- linux
- darwin
- windows
goarch:
- amd64
- arm64
Expand All @@ -26,7 +24,11 @@ archives:
- id: backup-restore-operator
builds:
- backup-restore-operator
name_template: '{{ .Binary }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}{{ if .Mips }}_{{ .Mips }}{{ end }}'
name_template: '{{ .Binary }}-{{ .Arch }}'
release:
prerelease: auto
extra_files:
- glob : ./build/artifacts/*.tgz
checksum:
name_template: 'checksums.txt'
snapshot:
Expand Down

0 comments on commit 0ff28c5

Please sign in to comment.