diff --git a/Dockerfile b/Dockerfile index d1ad29d3..02efd459 100644 --- a/Dockerfile +++ b/Dockerfile @@ -21,6 +21,14 @@ ARG USERNAME=app ARG USER_UID=1000 ARG USER_GID=$USER_UID +LABEL org.opencontainers.image.authors="Calloway Project https://github.com/callowayproject" +LABEL org.opencontainers.image.created=2024-10-12T09:38:00Z +LABEL org.opencontainers.image.url=https://github.com/callowayproject/bump-my-version +LABEL org.opencontainers.image.documentation=https://callowayproject.github.io/bump-my-version +LABEL org.opencontainers.image.source=https://github.com/callowayproject/bump-my-version +LABEL org.opencontainers.image.version=0.27.0 +LABEL org.opencontainers.image.licenses=MIT + # Add a non-root user and group RUN groupadd --gid $USER_GID $USERNAME \ && useradd --uid $USER_UID --gid $USER_GID -m $USERNAME diff --git a/pyproject.toml b/pyproject.toml index 92636f5b..b932cbdf 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -289,6 +289,15 @@ filename = "action.yml" search = "bump-my-version=={current_version}" replace = "bump-my-version=={new_version}" +[[tool.bumpversion.files]] +filename = "Dockerfile" +search = "created=\\d{{4}}-\\d{{2}}-\\d{{2}}T\\d{{2}}:\\d{{2}}:\\d{{2}}Z" +replace = "created={utcnow:%Y-%m-%dT%H:%M:%SZ}" +regex = true + +[[tool.bumpversion.files]] +filename = "Dockerfile" + [tool.pydoclint] style = "google" exclude = '\.git|tests'