Skip to content

Commit

Permalink
update dockerfile to install version
Browse files Browse the repository at this point in the history
Will install civicpy version based on GH release tag that was published
  • Loading branch information
korikuzma committed Oct 11, 2022
1 parent 67a3444 commit 28e2ae2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .github/workflows/create_docker_image.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,7 @@ jobs:
with:
context: .
file: ./Dockerfile
secrets: |
civicpy_version=${{ github.event.release.tag_name }}
push: true
tags: griffithlab/civicpy:${{ github.event.release.tag_name }},griffithlab/civicpy:latest
4 changes: 3 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
FROM python:3.7

RUN pip install civicpy
RUN --mount=type=secret,id=civicpy_version \
civicpy_version="$(cat /run/secrets/civicpy_version)" \
&& pip install civicpy==${civicpy_version}

0 comments on commit 28e2ae2

Please sign in to comment.