Skip to content

Commit d4cb8f2

Browse files
committed
Added container labels and version hooks
1 parent 0315db4 commit d4cb8f2

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed

Dockerfile

+8
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,14 @@ ARG USERNAME=app
2121
ARG USER_UID=1000
2222
ARG USER_GID=$USER_UID
2323

24+
LABEL org.opencontainers.image.authors="Calloway Project https://github.com/callowayproject"
25+
LABEL org.opencontainers.image.created=2024-10-12T09:38:00Z
26+
LABEL org.opencontainers.image.url=https://github.com/callowayproject/bump-my-version
27+
LABEL org.opencontainers.image.documentation=https://callowayproject.github.io/bump-my-version
28+
LABEL org.opencontainers.image.source=https://github.com/callowayproject/bump-my-version
29+
LABEL org.opencontainers.image.version=0.27.0
30+
LABEL org.opencontainers.image.licenses=MIT
31+
2432
# Add a non-root user and group
2533
RUN groupadd --gid $USER_GID $USERNAME \
2634
&& useradd --uid $USER_UID --gid $USER_GID -m $USERNAME

pyproject.toml

+9
Original file line numberDiff line numberDiff line change
@@ -289,6 +289,15 @@ filename = "action.yml"
289289
search = "bump-my-version=={current_version}"
290290
replace = "bump-my-version=={new_version}"
291291

292+
[[tool.bumpversion.files]]
293+
filename = "Dockerfile"
294+
search = "created=\\d{{4}}-\\d{{2}}-\\d{{2}}T\\d{{2}}:\\d{{2}}:\\d{{2}}Z"
295+
replace = "created={utcnow:%Y-%m-%dT%H:%M:%SZ}"
296+
regex = true
297+
298+
[[tool.bumpversion.files]]
299+
filename = "Dockerfile"
300+
292301
[tool.pydoclint]
293302
style = "google"
294303
exclude = '\.git|tests'

0 commit comments

Comments
 (0)