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
+3 -1
View File
@@ -1,6 +1,7 @@
image: jdrouet/docker-with-buildx:stable image: jdrouet/docker-with-buildx:stable
variables: variables:
# If set to 0 gitlab will not build the image
BUILD: 1 BUILD: 1
DOCKER_HOST: tcp://docker:2375 DOCKER_HOST: tcp://docker:2375
DOCKER_DRIVER: overlay2 DOCKER_DRIVER: overlay2
@@ -8,8 +9,9 @@ variables:
# Major - Shouldn't change often, Big changes to the site # Major - Shouldn't change often, Big changes to the site
# Minor - starts from 0 when Major is incremented +1 for each version that goes public # Minor - starts from 0 when Major is incremented +1 for each version that goes public
# Release - For each time a development milestone is reached # Release - For each time a development milestone is reached
VERSION: 1.0.6 VERSION: 1.1.0
IMAGE_TAG: $CI_REGISTRY_IMAGE:$VERSION IMAGE_TAG: $CI_REGISTRY_IMAGE:$VERSION
TINA_TOKEN: $TINA_TOKEN
services: services:
- docker:dind - docker:dind
+7 -1
View File
@@ -2,7 +2,7 @@
FROM alpine as Builder FROM alpine as Builder
# install curl and git # 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 # 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 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 # set blog (the folder we just cloned) as the current DIR
WORKDIR blog WORKDIR blog
# set tina_token
ARG TINA_TOKEN
# build Tina
RUN npm run tinacms build &&
# Hugo generates the static files and minifies them # Hugo generates the static files and minifies them
RUN hugo --minify RUN hugo --minify
+2 -2
View File
@@ -5,8 +5,8 @@ const branch = process.env.HEAD || process.env.VERCEL_GIT_COMMIT_REF || "main";
export default defineConfig({ export default defineConfig({
branch, branch,
clientId: null, // Get this from tina.io clientId: e4537a30-23f9-4ad7-8a1f-f844a298dff3, // Get this from tina.io
token: null, // Get this from tina.io token: $TINA_TOKEN, // Get this from tina.io
build: { build: {
outputFolder: "admin", outputFolder: "admin",