Skip to content

Commit

Permalink
Use commit_id.txt for revision & keep env var (#140)
Browse files Browse the repository at this point in the history
  • Loading branch information
zwolf authored Mar 23, 2022
1 parent e044da3 commit c120a3a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@ RUN mix deps.get

ADD . /app

ARG REVISION=''
# Check for a commit_id.txt file: if missing, use default
RUN export COMMIT_ID=$(cat commit_id.txt)
RUN REVISION="${COMMIT_ID:-asdf123jkl456}"
ENV REVISION=$REVISION

ENV MIX_ENV prod
Expand Down

0 comments on commit c120a3a

Please sign in to comment.