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
|
WORKDIR /usr/src/app
|
||||||
COPY . ./
|
COPY . ./
|
||||||
RUN git rev-parse --short HEAD > REVISION && \
|
RUN echo $SOURCE_COMMIT > REVISION && \
|
||||||
bundle install --without development --without test && \
|
bundle install --without development --without test && \
|
||||||
whenever --update-crontab
|
whenever --update-crontab
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue