Skip to content

Commit

Permalink
Try to make really sure that docker builds get the correct version (f…
Browse files Browse the repository at this point in the history
…rom git). Print generated version when building docker image.
  • Loading branch information
cyberw committed Sep 15, 2021
1 parent 1c65699 commit a91f6c5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,10 @@ jobs:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Get history and tags for SCM versioning to work
run: |
git fetch --prune --unshallow
git fetch --depth=1 origin +refs/tags/*:refs/tags/*
- uses: docker/login-action@v1
if: github.repository_owner == 'locustio'
with:
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
FROM python:3.8

COPY . /build
RUN cd /build && ls .git/ && pip install . && rm -rf /build
RUN cd /build && ls .git/ && pip install . && python3 setup.py --version && rm -rf /build

EXPOSE 8089 5557

Expand Down

0 comments on commit a91f6c5

Please sign in to comment.