Skip to content

Commit dbbefc9

Browse files
committed
revert(docs): change image back to debian
1 parent 26b54a3 commit dbbefc9

File tree

1 file changed

+16
-16
lines changed

1 file changed

+16
-16
lines changed

docs/content/documentation/deployment/gitlab-pages.md

+16-16
Original file line numberDiff line numberDiff line change
@@ -44,41 +44,41 @@ We provide you with a template to accomplish this task easily.
4444
Create a file called `.gitlab-ci.yml` in the root directory of your
4545
repository and copy the contents of the template below.
4646

47-
Note:
48-
49-
Each version of Alpine Linux supports a single version of Zola, for example:
50-
51-
Alpine Linux 3.20 supports Zola version 0.18.0.
52-
Alpine Linux 3.21 supports Zola version 0.19.2.
53-
54-
Make sure the version of Zola you specify in `ZOLA_VERSION` is supported by your version of the Alpine image.
47+
Make sure you specify a version of Zola in the `ZOLA_VERSION` variable.
5548

5649
```yaml
5750
stages:
5851
- deploy
5952

6053
default:
61-
image: alpine:3.21
54+
image: debian:stable-slim
6255

6356
variables:
6457
# The runner will be able to pull your Zola theme when the strategy is
6558
# set to "recursive".
6659
GIT_SUBMODULE_STRATEGY: "recursive"
6760

68-
# Make sure you specify a supported version of Zola whenever
69-
# you upgrade the version of the Alpine image.
70-
# Use semantic versioning (semver) format (x.y.z).
71-
# See https://pkgs.alpinelinux.org/packages
61+
# Make sure you specify a version of Zola here.
62+
# Use the semver format (x.y.z) to specify a version.
63+
# For example: "0.17.2" or "0.18.0".
7264
ZOLA_VERSION:
7365
description: "The version of Zola used to build the site."
74-
value: "0.19.2"
66+
value: ""
7567

7668
pages:
7769
stage: deploy
7870
script:
7971
- |
80-
apk add zola=~${ZOLA_VERSION}
81-
zola build --base-url $CI_PAGES_URL
72+
apt-get update
73+
DEBIAN_FRONTEND=noninteractive apt-get install --assume-yes --no-install-recommends wget ca-certificates
74+
zola_url="https://github.com/getzola/zola/releases/download/v$ZOLA_VERSION/zola-v$ZOLA_VERSION-x86_64-unknown-linux-gnu.tar.gz"
75+
if ! wget --quiet --spider $zola_url; then
76+
echo "A Zola release with the specified version could not be found.";
77+
exit 1;
78+
fi
79+
wget $zola_url
80+
tar -xzf *.tar.gz
81+
./zola build --base-url $CI_PAGES_URL
8282
8383
artifacts:
8484
paths:

0 commit comments

Comments
 (0)