Commit 8335c308 authored by Grant's avatar Grant
Browse files

add wiki template

parents
Loading
Loading
Loading
Loading

.vscode/settings.json

0 → 100644
+5 −0
Original line number Diff line number Diff line
{
  "yaml.schemas": {
    "https://gitlab.com/gitlab-org/gitlab/-/raw/master/app/assets/javascripts/editor/schema/ci.json": "*.yaml"
  }
}

wiki.yaml

0 → 100644
+17 −0
Original line number Diff line number Diff line
build wiki:
  image: alpine
  stage: build
  allow_failure: true
  rules:
    - if: $CI_PIPELINE_SOURCE != "merge_request_event" && $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
  before_script:
    - apk add --no-cache git git-subtree
  script:
    - 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 status
    - git checkout main
    - git pull
    - git push gitlab-wiki `git subtree split -P doc main`:main --force