Use SOURCE_COMMIT environment variable for REVISION file during Docker build
This commit is contained in:
parent
6fddef354d
commit
5903b4d601
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue