From d0bde7e3d2dad24976bc9624cd2cbdcc277180e6 Mon Sep 17 00:00:00 2001 From: mattcurts <63571383+mattcurts@users.noreply.github.com> Date: Mon, 12 Feb 2024 15:51:02 -0800 Subject: [PATCH] feat: include workflow version in image --- .github/workflows/publish.yml | 2 ++ Dockerfile | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 0c43016..d6210d4 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -19,6 +19,8 @@ jobs: uses: actions/checkout@v4 - name: Install Poetry uses: snok/install-poetry@v1 + - name: Write VERSION file + run: echo ${{ github.event.release.tag_name }} > VERSION - name: Update Version run: poetry version ${{github.event.release.tag_name}} - name: Login diff --git a/Dockerfile b/Dockerfile index ae5631e..6d8fc95 100644 --- a/Dockerfile +++ b/Dockerfile @@ -16,7 +16,7 @@ COPY --from=prep /build/bowtie2/* /usr/local/bin/ COPY --from=prep /build/pigz-2.8/pigz /usr/local/bin/pigz RUN curl -sSL https://install.python-poetry.org | python - ENV PATH="/root/.local/bin:${PATH}" -COPY pyproject.toml poetry.lock utils.py workflow.py ./ +COPY pyproject.toml poetry.lock utils.py workflow.py VERSION* ./ RUN poetry export > requirements.txt RUN pip install -r requirements.txt