Skip to content

Commit 0435ce9

Browse files
Remove heroku ref, error handling for build-clean arch
1 parent 077a319 commit 0435ce9

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

justfile

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,11 +57,18 @@ build:
5757
buildx:
5858
docker buildx build -f Dockerfile --progress=plain -t $TAG --build-arg CHIPSET_ARCH=x86_64-linux-gnu --load .
5959

60-
# [docker] arm build w/docker-compose defaults
60+
# [docker] build w/docker-compose defaults
6161
build-clean:
62-
docker-compose build --pull --no-cache --build-arg CHIPSET_ARCH=aarch64-linux-gnu
62+
#!/usr/bin/env bash
63+
set -euxo pipefail
64+
65+
if [[ {{arch}} == "arm64" ]]; then
66+
docker-compose build --pull --no-cache --build-arg CHIPSET_ARCH=aarch64-linux-gnu
67+
else
68+
docker-compose build --pull --no-cache --build-arg CHIPSET_ARCH=x86_64-linux-gnu
69+
fi
6370

64-
# [docker] pull latest heroku image
71+
# [docker] pull latest image
6572
pull:
6673
docker pull python:3.10-slim-buster
6774

0 commit comments

Comments
 (0)