Skip to content

Commit

Permalink
Regenerate files
Browse files Browse the repository at this point in the history
  • Loading branch information
scarletcafe committed Mar 5, 2024
1 parent 280864e commit decd65b
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion dockerfiles/0_minimal/alpine.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ FROM python:$PYTHON_VERSION-alpine
ARG BUILD_TIME=unknown
ARG GIT_HEAD=unknown
LABEL maintainer="Devon R <Gorialis>"
LABEL creation_time="2023-04-22 00:59:51 UTC"
LABEL creation_time="2024-03-05 15:02:19 UTC"
LABEL build_time=$BUILD_TIME
LABEL git_head=$GIT_HEAD

Expand Down
2 changes: 1 addition & 1 deletion dockerfiles/0_minimal/bullseye.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ FROM python:$PYTHON_VERSION-bullseye
ARG BUILD_TIME=unknown
ARG GIT_HEAD=unknown
LABEL maintainer="Devon R <Gorialis>"
LABEL creation_time="2023-04-22 00:59:51 UTC"
LABEL creation_time="2024-03-05 15:02:19 UTC"
LABEL build_time=$BUILD_TIME
LABEL git_head=$GIT_HEAD

Expand Down
2 changes: 1 addition & 1 deletion dockerfiles/0_minimal/slim-bullseye.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ FROM python:$PYTHON_VERSION-slim-bullseye
ARG BUILD_TIME=unknown
ARG GIT_HEAD=unknown
LABEL maintainer="Devon R <Gorialis>"
LABEL creation_time="2023-04-22 00:59:51 UTC"
LABEL creation_time="2024-03-05 15:02:19 UTC"
LABEL build_time=$BUILD_TIME
LABEL git_head=$GIT_HEAD

Expand Down
2 changes: 1 addition & 1 deletion dockerfiles/LABEL
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@
ARG BUILD_TIME=unknown
ARG GIT_HEAD=unknown
LABEL maintainer="Devon R <Gorialis>"
LABEL creation_time="2023-04-22 00:59:51 UTC"
LABEL creation_time="2024-03-05 15:02:19 UTC"
LABEL build_time=$BUILD_TIME
LABEL git_head=$GIT_HEAD
2 changes: 1 addition & 1 deletion dockerfiles/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ $ docker run -it --rm --name my-tests -v $PWD:/app -w /app gorialis/discord.py:m
## Building this image

You can use the Dockerfiles listed with the tags above to build these images yourself.
The Dockerfiles themselves are autogenerated (last generated 2023-04-22 00:59:51 UTC), and their templates are accessible via the [discord.py-docker repository](https://github.com/Gorialis/discord.py-docker).
The Dockerfiles themselves are autogenerated (last generated 2024-03-05 15:02:19 UTC), and their templates are accessible via the [discord.py-docker repository](https://github.com/Gorialis/discord.py-docker).

The general format is as such:
```console
Expand Down
6 changes: 3 additions & 3 deletions generate.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
SOFTWARE.
"""

from datetime import datetime
from datetime import datetime, UTC
from itertools import chain, product
from jinja2 import Environment, FileSystemLoader
from os import makedirs, path, walk
Expand Down Expand Up @@ -88,12 +88,12 @@ def get_tags(args):
env.filters.update(**extension_funcs)
env.globals.update(**extension_funcs)

now = datetime.utcnow().strftime('%Y-%m-%d %H:%M:%S UTC')
now = datetime.now(UTC).strftime('%Y-%m-%d %H:%M:%S UTC')

for root, dirs, files in walk('templates'):
for name in dirs:
makedirs(f'dockerfiles/{path.join(root, name)[10:]}', exist_ok=True)

for name in files:
real_name = path.join(root, name)[10:].replace('\\', '/')
template = env.get_template(real_name)
Expand Down

0 comments on commit decd65b

Please sign in to comment.