Skip to content

Commit f719915

Browse files
committed
ci: Update build tools etc.
python 3.13 mkdocs 9.6.11 nginx 1.26
1 parent 46d93ed commit f719915

File tree

8 files changed

+19
-17
lines changed

8 files changed

+19
-17
lines changed

.github/workflows/docker.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ jobs:
55
build:
66
runs-on: ubuntu-latest
77
steps:
8-
- uses: actions/checkout@44c2b7a8a4ea60a981eaca3cf939b5f4305c123b # v4.1.5
8+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
99
- name: Build the Docker image
1010
run: docker build -t decred/dcrdocs:$(date +%s) .
1111

.github/workflows/python.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,12 @@ jobs:
66
runs-on: ubuntu-latest
77
strategy:
88
matrix:
9-
python-version: [3.11]
9+
python-version: [3.13]
1010

1111
steps:
12-
- uses: actions/checkout@44c2b7a8a4ea60a981eaca3cf939b5f4305c123b # v4.1.5
12+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
1313
- name: Set up Python ${{ matrix.python-version }}
14-
uses: actions/setup-python@82c7e631bb3cdc910f68e0081d67478d79c6982d # v5.1.0
14+
uses: actions/setup-python@8d9ed9ac5c53483de85588cdf95a591a75ab9f55 # v5.5.0
1515
with:
1616
python-version: ${{ matrix.python-version }}
1717
- name: Install dependencies

Dockerfile

+7-7
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
# Build image
2-
FROM python:3.11
2+
FROM python:3.13
33

44
LABEL description="dcrdocs build"
55
LABEL version="1.0"
6-
LABEL maintainer "[email protected]"
6+
LABEL maintainer="[email protected]"
77

88
USER root
99
WORKDIR /root
@@ -17,20 +17,20 @@ RUN pip install mkdocs && \
1717

1818
# Install dependencies for generating social cards.
1919
# https://squidfunk.github.io/mkdocs-material/setup/setting-up-social-cards
20-
RUN apt update && \
21-
apt install -y libcairo2-dev libfreetype6-dev libffi-dev libjpeg-dev libpng-dev libz-dev && \
20+
RUN apt-get update && \
21+
apt-get install -y libcairo2-dev libfreetype6-dev libffi-dev libjpeg-dev libpng-dev libz-dev && \
2222
pip install pillow cairosvg
2323

24-
ENV DCRDOCS_CARDS true
24+
ENV DCRDOCS_CARDS="true"
2525

2626
RUN ./bin/build_docs.sh
2727

2828
# Serve image (stable nginx version)
29-
FROM nginx:1.24-alpine
29+
FROM nginx:1.26-alpine
3030

3131
LABEL description="dcrdocs serve"
3232
LABEL version="1.0"
33-
LABEL maintainer "[email protected]"
33+
LABEL maintainer="[email protected]"
3434

3535
COPY conf/nginx.conf /etc/nginx/conf.d/default.conf
3636

LICENSE

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
ISC License
22

3-
Copyright (c) 2018-2024 The Decred developers
3+
Copyright (c) 2018-2025 The Decred developers
44

55
Permission to use, copy, modify, and distribute this software for any
66
purpose with or without fee is hereby granted, provided that the above

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@
1313

1414
In order to develop on `dcrdocs` you will need [Python](https://www.python.org/)
1515
installed on your system.
16-
Version 3.9 is recommended because this is the version used by the live site,
17-
however MkDocs does also support versions 3.6 and later.
16+
Version 3.13 is recommended because this is the version used by the live site,
17+
however MkDocs does also support versions 3.8 and later.
1818
Python 2 is not supported.
1919

2020
You can verify your installation of Python by checking the output from these two

bin/build.sh

+3-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,9 @@ if [ "$1" != "" ]; then
1515
IMAGE_NAME=$1
1616
fi
1717

18-
docker build -t $IMAGE_NAME .
18+
# The default logging of the docker builder folds output which can hide
19+
# important DEBUG/INFO messages. Use --progress==plain to prevent this.
20+
docker build --progress=plain -t $IMAGE_NAME .
1921

2022
echo ""
2123
echo "==================="

mkdocs.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -276,4 +276,4 @@ nav:
276276
- 'Glossary': 'glossary.md'
277277
- About:
278278
- 'License': 'about/license.md'
279-
copyright: If you wish to improve this site, please <a href="https://github.com/decred/dcrdocs/issues/new">open an issue</a> or <a href="https://github.com/decred/dcrdocs/compare">send a pull request</a>.<br />dcrdocs v0.0.3. Decred Project 2016-2024.
279+
copyright: If you wish to improve this site, please <a href="https://github.com/decred/dcrdocs/issues/new">open an issue</a> or <a href="https://github.com/decred/dcrdocs/compare">send a pull request</a>.<br />dcrdocs v0.0.3. Decred Project 2016-2025.

requirements.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
mkdocs-material==9.5.21
1+
mkdocs-material==9.6.11
22
mkdocs-markdownextradata-plugin==0.2.5

0 commit comments

Comments
 (0)