1
0
مراية لـ https://github.com/postalserver/postal.git تم المزامنة 2025-11-30 21:32:30 +00:00

refactor(versioning): improve how current version and branch is determined and set

Refactor `Postal.version`` and `Postal.branch` and remove `Postal::VERSION`.
هذا الالتزام موجود في:
Adam Cooke
2024-03-21 14:38:05 +00:00
الأصل a3fab36da2
التزام 07c6b317f2
3 ملفات معدلة مع 25 إضافات و28 حذوفات

عرض الملف

@@ -43,10 +43,10 @@ COPY ./docker/wait-for.sh /docker-entrypoint.sh
COPY --chown=postal . .
# Export the version
ARG VERSION=null
ARG BRANCH=null
RUN echo $VERSION > VERSION \
&& echo $BRANCH > BRANCH
ARG VERSION
ARG BRANCH
RUN if [ "$VERSION" != "" ]; then echo $VERSION > VERSION; fi \
&& if [ "$BRANCH" != "" ]; then echo $BRANCH > BRANCH; fi
# Set paths for when running in a container
ENV POSTAL_CONFIG_FILE_PATH=/config/postal.yml