Skip to content

Commit d0bde7e

Browse files
authored
feat: include workflow version in image
1 parent 128605d commit d0bde7e

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

.github/workflows/publish.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ jobs:
1919
uses: actions/checkout@v4
2020
- name: Install Poetry
2121
uses: snok/install-poetry@v1
22+
- name: Write VERSION file
23+
run: echo ${{ github.event.release.tag_name }} > VERSION
2224
- name: Update Version
2325
run: poetry version ${{github.event.release.tag_name}}
2426
- name: Login

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ COPY --from=prep /build/bowtie2/* /usr/local/bin/
1616
COPY --from=prep /build/pigz-2.8/pigz /usr/local/bin/pigz
1717
RUN curl -sSL https://install.python-poetry.org | python -
1818
ENV PATH="/root/.local/bin:${PATH}"
19-
COPY pyproject.toml poetry.lock utils.py workflow.py ./
19+
COPY pyproject.toml poetry.lock utils.py workflow.py VERSION* ./
2020
RUN poetry export > requirements.txt
2121
RUN pip install -r requirements.txt
2222

0 commit comments

Comments
 (0)