Skip to content

Commit

Permalink
version info
Browse files Browse the repository at this point in the history
  • Loading branch information
wardviaene committed Feb 10, 2018
1 parent 4d74002 commit b36fabd
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
ARG SOURCE_COMMIT

#
# build angular project
#
Expand Down Expand Up @@ -45,6 +47,8 @@ COPY . .
COPY --from=go-builder /go/src/github.com/in4it/ecs-deploy/ecs-deploy .
COPY --from=webapp-builder /webapp/dist webapp/dist

RUN echo $SOURCE_COMMIT > source_commit

# remove unnecessary source files
RUN rm -rf *.go webapp/src

Expand Down
2 changes: 2 additions & 0 deletions hooks/build
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#!/bin/bash
docker build -t $IMAGE_NAME --build-arg SOURCE_COMMIT=$SOURCE_COMMIT .

0 comments on commit b36fabd

Please sign in to comment.