Skip to content

Commit 28fe9f8

Browse files
edenhausE Shattow
authored andcommitted
Remove deprecated archs (#263)
1 parent de3033e commit 28fe9f8

File tree

4 files changed

+3
-61
lines changed

4 files changed

+3
-61
lines changed

Dockerfile

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,9 @@ RUN \
1414
docker-cli-buildx \
1515
coreutils \
1616
\
17-
&& if [ "${BUILD_ARCH}" = "armhf" ] || [ "${BUILD_ARCH}" = "armv7" ]; then \
18-
wget -q -O /usr/bin/yq "https://github.com/mikefarah/yq/releases/download/${YQ_VERSION}/yq_linux_arm"; \
19-
wget -q -O /usr/bin/cosign "https://github.com/home-assistant/cosign/releases/download/${COSIGN_VERSION}/cosign_armhf"; \
20-
elif [ "${BUILD_ARCH}" = "aarch64" ]; then \
17+
&& if [ "${BUILD_ARCH}" = "aarch64" ]; then \
2118
wget -q -O /usr/bin/yq "https://github.com/mikefarah/yq/releases/download/${YQ_VERSION}/yq_linux_arm64"; \
2219
wget -q -O /usr/bin/cosign "https://github.com/home-assistant/cosign/releases/download/${COSIGN_VERSION}/cosign_aarch64"; \
23-
elif [ "${BUILD_ARCH}" = "i386" ]; then \
24-
wget -q -O /usr/bin/yq "https://github.com/mikefarah/yq/releases/download/${YQ_VERSION}/yq_linux_386"; \
25-
wget -q -O /usr/bin/cosign "https://github.com/home-assistant/cosign/releases/download/${COSIGN_VERSION}/cosign_i386"; \
2620
elif [ "${BUILD_ARCH}" = "amd64" ]; then \
2721
wget -q -O /usr/bin/yq "https://github.com/mikefarah/yq/releases/download/${YQ_VERSION}/yq_linux_amd64"; \
2822
wget -q -O /usr/bin/cosign "https://github.com/home-assistant/cosign/releases/download/${COSIGN_VERSION}/cosign_amd64"; \

README.md

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -109,16 +109,10 @@ Options:
109109
Use this to set build_from tag if not specified.
110110

111111
Architecture
112-
--armhf
113-
Build for arm v6.
114-
--armv7
115-
Build for arm v7.
116112
--amd64
117113
Build for intel/amd 64bit.
118114
--aarch64
119115
Build for arm 64bit.
120-
--i386
121-
Build for intel/amd 32bit.
122116
--all
123117
Build all architecture.
124118

@@ -170,12 +164,6 @@ amd64:
170164
docker pull ghcr.io/home-assistant/amd64-builder:latest
171165
```
172166

173-
armv7:
174-
175-
```bash
176-
docker pull ghcr.io/home-assistant/armv7-builder:latest
177-
```
178-
179167
aarch64:
180168

181169
```bash

build.yaml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,7 @@
11
image: "ghcr.io/home-assistant/{arch}-builder"
22
build_from:
33
aarch64: "ghcr.io/home-assistant/aarch64-base:3.22"
4-
armv7: "ghcr.io/home-assistant/armv7-base:3.22"
5-
armhf: "ghcr.io/home-assistant/armhf-base:3.22"
64
amd64: "ghcr.io/home-assistant/amd64-base:3.22"
7-
i386: "ghcr.io/home-assistant/i386-base:3.22"
85
cosign:
96
base_identity: https://github.com/home-assistant/docker-base/.*
107
identity: https://github.com/home-assistant/builder/.*

builder.sh

Lines changed: 2 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -43,21 +43,13 @@ declare -A BUILD_MACHINE=(
4343
[odroid-c4]="aarch64" \
4444
[odroid-m1]="aarch64" \
4545
[odroid-n2]="aarch64" \
46-
[odroid-xu]="armv7" \
47-
[qemuarm]="armhf" \
4846
[qemuarm-64]="aarch64" \
49-
[qemux86]="i386" \
5047
[qemux86-64]="amd64" \
51-
[raspberrypi]="armhf" \
52-
[raspberrypi2]="armv7" \
53-
[raspberrypi3]="armv7" \
5448
[raspberrypi3-64]="aarch64" \
55-
[raspberrypi4]="armv7" \
5649
[raspberrypi4-64]="aarch64" \
5750
[raspberrypi5-64]="aarch64" \
5851
[yellow]="aarch64" \
59-
[green]="aarch64" \
60-
[tinker]="armv7" )
52+
[green]="aarch64" )
6153

6254

6355
#### Misc functions ####
@@ -94,16 +86,10 @@ Options:
9486
Use this to set build_from tag if not specified.
9587
9688
Architecture
97-
--armhf
98-
Build for arm v6.
99-
--armv7
100-
Build for arm v7.
10189
--amd64
10290
Build for intel/amd 64bit.
10391
--aarch64
10492
Build for arm 64bit.
105-
--i386
106-
Build for intel/amd 32bit.
10793
--all
10894
Build all architecture.
10995
@@ -243,10 +229,7 @@ function run_build() {
243229

244230
# Set docker platform from build arch
245231
case "${build_arch}" in
246-
armhf) docker_platform="linux/arm/v6" ;;
247-
armv7) docker_platform="linux/arm/v7" ;;
248232
amd64) docker_platform="linux/amd64" ;;
249-
i386) docker_platform="linux/386" ;;
250233
aarch64) docker_platform="linux/arm64" ;;
251234
*) bashio::exit.nok "Recived unknown architecture ${build_arch}" ;;
252235
esac
@@ -259,17 +242,6 @@ function run_build() {
259242
cosign_issuer="$(jq --raw-output '.cosign.issuer // "https://token.actions.githubusercontent.com"' "/tmp/build_config/build.json")"
260243
fi
261244

262-
# Adjust Qemu CPU
263-
if bashio::var.equals "${build_arch}" armhf; then
264-
docker_cli+=("--build-arg" "QEMU_CPU=arm1176")
265-
fi
266-
267-
# Ensure docker reports correct architecture
268-
# to the containerized build process
269-
if bashio::var.equals "${build_arch}" i386; then
270-
docker_wrapper="linux32"
271-
fi
272-
273245
# Check if image exists on docker hub
274246
if bashio::var.true "$DOCKER_HUB_CHECK"; then
275247
metadata="$(curl -s "https://hub.docker.com/v2/repositories/${repository}/${image}/tags/${version}/")"
@@ -917,23 +889,14 @@ while [[ $# -gt 0 ]]; do
917889
DOCKER_PASSWORD=$2
918890
shift
919891
;;
920-
--armhf)
921-
BUILD_LIST+=("armhf")
922-
;;
923-
--armv7)
924-
BUILD_LIST+=("armv7")
925-
;;
926892
--amd64)
927893
BUILD_LIST+=("amd64")
928894
;;
929-
--i386)
930-
BUILD_LIST+=("i386")
931-
;;
932895
--aarch64)
933896
BUILD_LIST+=("aarch64")
934897
;;
935898
--all)
936-
BUILD_LIST=("armhf" "armv7" "amd64" "i386" "aarch64")
899+
BUILD_LIST=("amd64" "aarch64")
937900
;;
938901
--addon)
939902
BUILD_TYPE="addon"

0 commit comments

Comments
 (0)