From 0ff28c5d87f930c1f2585d67ab71e1befe778f3c Mon Sep 17 00:00:00 2001 From: Alexandre Lamarre Date: Tue, 14 May 2024 10:00:35 -0400 Subject: [PATCH] Add packaged release charts to github releases Compile release binaries only for linux amd & arm Change release binary name format to match previous one Signed-off-by: Alexandre Lamarre --- .github/workflows/release.yaml | 3 +++ .gitignore | 1 + .goreleaser.yaml | 8 +++++--- 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index d0dd4f43..df8ea22b 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -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 diff --git a/.gitignore b/.gitignore index 4b2b682d..56f9d128 100644 --- a/.gitignore +++ b/.gitignore @@ -2,6 +2,7 @@ /.cache /bin /dist +/build *.swp .idea ./backup diff --git a/.goreleaser.yaml b/.goreleaser.yaml index c4c05fa9..732aa2a4 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -7,8 +7,6 @@ builds: main: ./main.go goos: - linux - - darwin - - windows goarch: - amd64 - arm64 @@ -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: