diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 6465710..98ae654 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -91,7 +91,8 @@ jobs: docker push "${IMAGE_NAME_WITH_TAG_VERSION}" # Push latest if required - if [[ "${IMAGE_NAME_WITH_TAG_LATEST}" != "${IMAGE_NAME_WITH_TAG_LATEST}" ]]; then + if [[ "${DOCKER_TAG_LATEST}" == "latest" ]]; then + docker tag "${{ env.DOCKER_USERNAME }}/${{ env.IMAGE_NAME }}:latest" "${{ env.DOCKER_USERNAME }}/${{ env.IMAGE_NAME }}:latest" docker push "${IMAGE_NAME_WITH_TAG_LATEST}" fi diff --git a/Dockerfile b/Dockerfile index fa55a6d..55e16af 100644 --- a/Dockerfile +++ b/Dockerfile @@ -20,15 +20,12 @@ RUN apk add --no-cache git \ ################################################################ FROM python:3.12-alpine -ENV PYGITVER_TEMPLATE_CHANGELOG="/pygitver/templates/changelog.tmpl" -ENV PYGITVER_TEMPLATE_CHANGELOG_COMMON="/pygitver/templates/changelog-common.tmpl" ENV PYGITVER_ROOT="/pygitver" # Install dependencies RUN apk add --no-cache git openssh # Copy application code and -COPY ./src/pygitver/templates /pygitver/templates COPY ./src/pygitver/scripts /pygitver/scripts COPY --from=build /opt/venv /opt/venv diff --git a/pyproject.toml b/pyproject.toml index 721830c..0802cfc 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "pygitver" -version = "0.1.0" +version = "0.1.1" authors = [ { name="Yurii Puchkov", email="panpuchkov@gmail.com" }, ] diff --git a/src/pygitver/git.py b/src/pygitver/git.py index 4f96225..1222dcc 100644 --- a/src/pygitver/git.py +++ b/src/pygitver/git.py @@ -23,7 +23,7 @@ class GitError(Exception): class Git: - __version__ = "0.1.0" + __version__ = "0.1.1" @staticmethod def _cmd(command: str) -> str: