move to private repo

This commit is contained in:
ahmza
2024-06-21 23:35:24 +01:00
parent aeebc54317
commit 55888d656c
2 changed files with 3 additions and 2 deletions
+2 -1
View File
@@ -1,5 +1,6 @@
# use the classic alpine image
FROM alpine as Builder
ARG GITLAB_TOKEN
# install curl and git
RUN apk add --update curl git
@@ -8,7 +9,7 @@ RUN apk add --update curl git
RUN curl -L https://github.com/gohugoio/hugo/releases/download/v0.121.1/hugo_0.121.1_linux-arm64.tar.gz > hugo.tar.gz && tar -zxf hugo.tar.gz && mv hugo /usr/local/bin
# clone the blog repository as well as the theme submodule
RUN git clone --recurse-submodules https://gitlab.com/AHMZA/blog.git
RUN git clone --recurse-submodules https://oauth2:$GITLAB_TOKEN@gitlab.com/AHMZA/blog.git
# set blog (the folder we just cloned) as the current DIR
WORKDIR blog