Skip to content

Commit 2e82219

Browse files
committed
docs(ci): add sudo to apt commands
Add sudo to apt-get just in case a permission error could occur in the GitLab pipeline.
1 parent 759b614 commit 2e82219

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

+2-2
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,8 @@ pages:
6969
stage: deploy
7070
script:
7171
- |
72-
apt-get update
73-
DEBIAN_FRONTEND=noninteractive apt-get install --assume-yes --no-install-recommends wget ca-certificates
72+
sudo apt-get update
73+
DEBIAN_FRONTEND=noninteractive sudo apt-get install --assume-yes --no-install-recommends wget ca-certificates
7474
zola_url="https://github.com/getzola/zola/releases/download/v${ZOLA_VERSION}/zola-v${ZOLA_VERSION}-x86_64-unknown-linux-gnu.tar.gz"
7575
if ! wget --quiet --spider $zola_url; then
7676
echo "A Zola release with the specified version could not be found."

0 commit comments

Comments
 (0)