Skip to content

Commit

Permalink
chore: add helpful statement to justfile and fix a couple typos
Browse files Browse the repository at this point in the history
  • Loading branch information
arcanemachine committed May 14, 2024
1 parent 3261a60 commit 1aa91ff
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions justfile
Original file line number Diff line number Diff line change
Expand Up @@ -120,13 +120,14 @@ color_reset := "\\033[39m"
docker build -t "{{ image_name }}:$(uname -m)" .

# build versioned image
just _echo_info "NOTE: The versioned image may fail to build the first time. Try running the same command again if it fails."
just _echo_info "Building a versioned image..."
docker build -t "{{ image_name }}:$(just version-project)-erlang-$(just version-otp)-$(uname -m)" .

# build 'latest' image to Docker Hub if we are on the 'x86_64' CPU architecture
# build 'latest' image if we are on the 'x86_64' CPU architecture
if [ "$(uname -m)" = "{{ default_cpu_arch }}" ] && \
[ "$(just version-otp)" = "{{ newest_supported_otp }}" ]; then \
just _echo_info "Building the 'latest' image on Docker Hub since we're using the default CPU architecture ({{ default_cpu_arch }}) architecture and our latest supported version of OTP ({{ newest_supported_otp }})..."; \
just _echo_info "Building the 'latest' image since we're using the default CPU architecture ({{ default_cpu_arch }}) architecture and our latest supported version of OTP ({{ newest_supported_otp }})..."; \
docker build -t "{{ image_name }}:latest" .; \
fi

Expand Down

0 comments on commit 1aa91ff

Please # to comment.