docker: include git hash in Docker image.

Put the Git hash of the current commit inside the Docker image built by
Docker Hub. The hash is stored in the REVISION file in the root directory.
This commit is contained in:
evazion
2021-05-02 16:59:49 -05:00
parent 50cb3ef53a
commit ca34d502c8
3 changed files with 43 additions and 0 deletions

View File

@@ -47,6 +47,9 @@ RUN yarn install
COPY . .
ARG SOURCE_COMMIT
RUN echo "$SOURCE_COMMIT" > REVISION
FROM development AS assets