diff --git a/Dockerfile b/Dockerfile index 6988309..5a8adef 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM alpine +FROM python:3.9-alpine3.16 LABEL "maintainer"="Stephen Arnold " \ "repository"="https://github.com/sarnold/gitchangelog-action" \ @@ -8,17 +8,14 @@ LABEL "maintainer"="Stephen Arnold " \ "com.github.actions.icon"="check-circle" \ "com.github.actions.color"="package" -RUN apk --no-cache add \ - python3 \ - python3-dev \ - bash \ - git \ - py3-pip +RUN apk --no-cache add git bash -RUN pip install https://github.com/sarnold/gitchangelog/archive/refs/tags/3.0.9.tar.gz +ADD genchangelog.sh / +ADD requirements.txt / +ADD gitchangelog-release.rc / -ADD ./gitchangelog-release.rc /gitchangelog-release.rc - -ADD ./genchangelog.sh /genchangelog.sh +RUN pip install --upgrade pip && \ + pip install --no-cache-dir -r /requirements.txt +RUN chmod +x /genchangelog.sh ENTRYPOINT ["/genchangelog.sh"] diff --git a/gitchangelog-release.rc b/gitchangelog-release.rc index 7e00ff5..11f4666 100644 --- a/gitchangelog-release.rc +++ b/gitchangelog-release.rc @@ -152,8 +152,8 @@ subject_process = (strip | ## ## Tags that will be used for the changelog must match this regexp. ## -#tag_filter_regexp = r'^v?[0-9]+\.[0-9]+(\.[0-9]+)?$' -tag_filter_regexp = r'^[0-9]+\.[0-9]+(\.[0-9]+)?$' +tag_filter_regexp = r'^v?[0-9]+\.[0-9]+(\.[0-9]+)?$' +#tag_filter_regexp = r'^[0-9]+\.[0-9]+(\.[0-9]+)?$' ## ``unreleased_version_label`` is a string or a callable that outputs a string diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..09327f1 --- /dev/null +++ b/requirements.txt @@ -0,0 +1 @@ +https://github.com/sarnold/gitchangelog/releases/download/3.1.1/gitchangelog-3.1.1-py3-none-any.whl