fix parser version check

This commit is contained in:
Graham McIntire 2025-07-07 14:01:43 -05:00
parent c87b58a2df
commit bd534da1ac
No known key found for this signature in database
2 changed files with 3 additions and 1 deletions

View file

@ -11,6 +11,7 @@ ARG RUNNER_IMAGE="debian:${DEBIAN_VERSION}"
FROM ${BUILDER_IMAGE} AS builder
# Install build dependencies
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update -y && apt-get install -y --no-install-recommends build-essential git curl \
&& apt-get clean && rm -rf /var/lib/apt/lists/*

View file

@ -130,7 +130,8 @@ defmodule Aprsme.MixProject do
defp get_version do
case System.get_env("PARSER_GIT_HASH") do
nil -> "0.1.0"
hash -> hash
"unknown" -> "0.1.0"
hash -> "0.0.0-#{hash}"
end
end
end