Skip to content

Commit 6dad955

Browse files
authored
feat: include workflow version in image
1 parent 84eca6e commit 6dad955

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

.github/workflows/publish.yml

+2
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ jobs:
1717
steps:
1818
- uses: actions/checkout@v2
1919
- uses: snok/install-poetry@v1
20+
- name: Write VERSION file
21+
run: echo ${{ github.event.release.tag_name }} > VERSION
2022
- name: Update Version
2123
run: poetry version ${{github.event.release.tag_name}}
2224
- uses: docker/login-action@v1

Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ RUN chmod ugo+x /opt/fastqc/fastqc && \
1616
ln -fs /opt/fastqc/fastqc /usr/local/bin/fastqc
1717
RUN curl -sSL https://install.python-poetry.org | python -
1818
ENV PATH="/root/.local/bin:${PATH}"
19-
COPY pyproject.toml poetry.lock workflow.py ./
19+
COPY pyproject.toml poetry.lock workflow.py VERSION* ./
2020
RUN poetry install
2121
RUN poetry export > requirements.txt
2222
RUN pip install -r requirements.txt

0 commit comments

Comments
 (0)