Updated TINA token

This commit is contained in:
Hamza Ahmed
2023-11-10 21:18:01 +00:00
parent 4b14e4d328
commit b804c62593
3 changed files with 12 additions and 4 deletions
+7 -1
View File
@@ -2,7 +2,7 @@
FROM alpine as Builder
# install curl and git
RUN apk add curl git
RUN apk add --update curl git npm
# download and unnzip the hugo binary then place it in /usr/local/bin
RUN curl -L https://github.com/gohugoio/hugo/releases/download/v0.109.0/hugo_0.109.0_linux-arm64.tar.gz > hugo.tar.gz && tar -zxf hugo.tar.gz && mv hugo /usr/local/bin
@@ -13,6 +13,12 @@ RUN git clone --recurse-submodules https://gitlab.com/AHMZA/blog.git
# set blog (the folder we just cloned) as the current DIR
WORKDIR blog
# set tina_token
ARG TINA_TOKEN
# build Tina
RUN npm run tinacms build &&
# Hugo generates the static files and minifies them
RUN hugo --minify