diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 785fa6b..3866ee9 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -37,8 +37,7 @@ jobs: - name: Build the web image run: | - APP_VERSION=$(hatch version) - buildah bud -t tmt-web:latest --build-arg PYTHON_VERSION=${{ matrix.python-version }} --build-arg APP_VERSION=${APP_VERSION} . + buildah bud -t tmt-web:latest --build-arg PYTHON_VERSION=${{ matrix.python-version }} --build-arg APP_VERSION=$(hatch version) . - name: Create Podman pod run: | diff --git a/Containerfile b/Containerfile index 61e4865..731f790 100644 --- a/Containerfile +++ b/Containerfile @@ -8,7 +8,7 @@ COPY ./src/ /app/src COPY ./pyproject.toml /app/pyproject.toml RUN pip install hatch-vcs -RUN pip install . +RUN SETUPTOOLS_SCM_PRETEND_VERSION=$APP_VERSION pip install . COPY /entrypoint.sh /entrypoint.sh RUN chmod +x /entrypoint.sh