trying to fix tina vars

This commit is contained in:
Hamza Ahmed
2023-11-16 16:51:40 +00:00
parent 9bc4d01291
commit 0d3ec874f7
2 changed files with 5 additions and 7 deletions
+4 -3
View File
@@ -21,8 +21,9 @@ services:
build: build:
stage: build stage: build
script: script:
- docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY - echo $TINA_TOKEN
- docker buildx create --use # - docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
- docker buildx build --build-arg TINA_CID=${TINA_CID} --build-arg TINA_TOKEN={$TINA_TOKEN} --no-cache --platform linux/arm64,linux/amd64 -t $IMAGE_TAG --push . # - docker buildx create --use
# - docker buildx build --build-arg TINA_CID=${TINA_CID} --build-arg TINA_TOKEN={$TINA_TOKEN} --no-cache --platform linux/arm64,linux/amd64 -t $IMAGE_TAG --push .
rules: rules:
- if: $CI_PIPELINE_SOURCE == "push" && ($CI_COMMIT_BRANCH == "main" || $CI_COMMIT_BRANCH == "staging") && $BUILD == "1" - if: $CI_PIPELINE_SOURCE == "push" && ($CI_COMMIT_BRANCH == "main" || $CI_COMMIT_BRANCH == "staging") && $BUILD == "1"
+1 -4
View File
@@ -13,10 +13,7 @@ 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_cid & tina_token # install tinacli
ENV TINA_TOKEN
ENV TINA_CID
RUN npm install @tinacms/cli RUN npm install @tinacms/cli
# build Tina and generate minifed hugo files # build Tina and generate minifed hugo files