Skip to content

Commit

Permalink
Use armv6 for -rpi instead of armv7
Browse files Browse the repository at this point in the history
  • Loading branch information
kminehart committed Sep 1, 2023
1 parent 0e8ddfd commit 5aeacd8
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 6 deletions.
2 changes: 1 addition & 1 deletion scripts/drone_publish_tag_enterprise.sh
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ dagger run --silent go run ./cmd deb \

# Use the armv7 package to build the `rpi` specific version.
dagger run --silent go run ./cmd deb \
$(cat assets.txt | grep tar.gz | grep -v docker | grep -v sha256 | grep -v windows | grep -v darwin | grep arm-7 | awk '{print "--package=" $0}') \
$(cat assets.txt | grep tar.gz | grep -v docker | grep -v sha256 | grep -v windows | grep -v darwin | grep arm-6 | awk '{print "--package=" $0}') \
--name=grafana-enterprise-rpi \
--checksum \
--destination=${local_dst} \
Expand Down
2 changes: 1 addition & 1 deletion scripts/drone_publish_tag_grafana.sh
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ dagger run --silent go run ./cmd deb \

# Use the armv7 package to build the `rpi` specific version.
dagger run --silent go run ./cmd deb \
$(cat assets.txt | grep tar.gz | grep -v docker | grep -v sha256 | grep -v windows | grep -v darwin | grep arm-7 | awk '{print "--package=" $0}') \
$(cat assets.txt | grep tar.gz | grep -v docker | grep -v sha256 | grep -v windows | grep -v darwin | grep arm-6 | awk '{print "--package=" $0}') \
--name=grafana-rpi \
--checksum \
--destination=${local_dst} \
Expand Down
5 changes: 1 addition & 4 deletions scripts/move_packages.go
Original file line number Diff line number Diff line change
Expand Up @@ -211,11 +211,8 @@ func DebHandler(name string) []string {

names := []string{fullName}
goos, arch := executil.OSAndArch(opts.Distro)
arm := executil.ArchVersion(opts.Distro)
if arch == "arm" {
if arm == "7" {
arch = "armhf"
}
arch = "armhf"
// If we're building for arm then we also copy the same thing, but with the name '-rpi'. for osme reason?
names = []string{fullName}
}
Expand Down
6 changes: 6 additions & 0 deletions scripts/move_packages_deb_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,12 @@ var debMapping = []m{
"artifacts/downloads/v1.2.3/oss/release/grafana-rpi_1.2.3_armhf.deb",
},
},
{
input: "gs://bucket/tag/grafana-rpi_v1.2.3_102_linux_arm-6.deb",
output: []string{
"artifacts/downloads/v1.2.3/oss/release/grafana-rpi_1.2.3_armhf.deb",
},
},
{
input: "gs://bucket/tag/grafana_v1.2.3_102_linux_arm-7.deb.sha256",
output: []string{
Expand Down

0 comments on commit 5aeacd8

Please sign in to comment.