Use SOURCE_COMMIT environment variable for REVISION file during Docker build

This commit is contained in:
Patrick Gansterer 2017-07-31 23:22:31 +02:00
parent 6fddef354d
commit 5903b4d601
1 changed files with 1 additions and 1 deletions

View File

@ -13,7 +13,7 @@ ENV RAILS_ENV=production
WORKDIR /usr/src/app
COPY . ./
RUN git rev-parse --short HEAD > REVISION && \
RUN echo $SOURCE_COMMIT > REVISION && \
bundle install --without development --without test && \
whenever --update-crontab