Commit 4a57cfa7 authored by Grant's avatar Grant
Browse files

use variable inputs

parent b4579d1b
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
spec:
  inputs:
    wiki_token:
      type: string
---
build wiki:
  image: alpine
  stage: build
@@ -10,7 +15,7 @@ build wiki:
    - git config user.email "ci@sc07.com"
    - git config user.name "wiki ci"
    - git remote remove gitlab-wiki || true
    - git remote add gitlab-wiki "https://ci:$CI_TOKEN@sc07.dev/$CI_PROJECT_PATH.wiki.git"
    - git remote add gitlab-wiki "https://ci:$[[ inputs.wiki_token ]]@sc07.dev/$CI_PROJECT_PATH.wiki.git"
    - git status
    - git checkout main
    - git pull