Skip to content

Commit

Permalink
feat: add release artifacts for arm32
Browse files Browse the repository at this point in the history
  • Loading branch information
garethgeorge committed Feb 29, 2024
1 parent 5b362cc commit a737371
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 4 deletions.
23 changes: 21 additions & 2 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,16 +20,26 @@ before:
- sh -c "GOOS=windows BACKREST_BUILD_VERSION={{.Version}} go generate ./..."

builds:
- main: .
- id: other
main: .
env:
- CGO_ENABLED=0
goos:
- linux
- darwin
- windows
goarch:
- amd64
- arm64
- id: linux
main: .
env:
- CGO_ENABLED=0
goos:
- linux
goarch:
- amd64
- arm64
- arm

archives:
- format: tar.gz
Expand Down Expand Up @@ -85,11 +95,20 @@ dockers:
- "--pull"
- "--platform=linux/amd64"

- image_templates:
- garethgeorge/backrest:{{ .Tag }}-scratch-armv6
dockerfile: Dockerfile.scratch
use: buildx
build_flag_templates:
- "--pull"
- "--platform=linux/arm/v6"

docker_manifests:
- name_template: "garethgeorge/backrest:latest"
image_templates:
- "garethgeorge/backrest:{{ .Tag }}-scratch-amd64"
- "garethgeorge/backrest:{{ .Tag }}-scratch-arm64"
- "garethgeorge/backrest:{{ .Tag }}-scratch-armv6"
- name_template: "garethgeorge/backrest:{{ .Tag }}"
image_templates:
- "garethgeorge/backrest:{{ .Tag }}-scratch-amd64"
Expand Down
1 change: 0 additions & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ This repo uses [Conventional Commits](https://www.conventionalcommits.org/en/v1.

* Node.JS for UI development
* Go 1.21 or greater for server development
* go.rice `go install github.com/GeertJohan/go.rice@latest` and `go install github.com/GeertJohan/go.rice/rice@latest`
* goreleaser `go install github.com/goreleaser/goreleaser@latest`

**To Edit Protobuffers**
Expand Down
2 changes: 1 addition & 1 deletion webui/src/views/RepoView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ const StatsPanel = ({ repoId }: { repoId: string }) => {
series={[
{
dataKey: "totalSizeMb",
label: "Total Size (MB)",
label: "Total Size",
valueFormatter: (v: any) => formatBytes(v * 1000000 as number),
},
]}
Expand Down

0 comments on commit a737371

Please sign in to comment.