Skip to content

Commit

Permalink
Add ssh token for publishing gh-pages (#1031)
Browse files Browse the repository at this point in the history
* Added ssh token for publishing gh-pages

* fix ssh commands for publish-docs
  • Loading branch information
alvicsam authored Nov 23, 2021
1 parent b2256d9 commit 2ee203d
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,9 @@ workflow:
PIPELINE_TOKEN:
vault: cicd/gitlab/$CI_PROJECT_PATH/PIPELINE_TOKEN@kv
file: false
GITHUB_SSH_PRIV_KEY:
vault: cicd/gitlab/$CI_PROJECT_PATH/GITHUB_SSH_PRIV_KEY@kv
file: true

#### stage: check

Expand Down Expand Up @@ -444,10 +447,10 @@ publish-docs:
script:
- rm -rf /tmp/*
# Set git config
- rm -rf .git/config
- git config core.sshCommand "ssh -i ${GITHUB_SSH_PRIV_KEY} -F /dev/null -o StrictHostKeyChecking=no"
- git config user.email "[email protected]"
- git config user.name "${GITHUB_USER}"
- git config remote.origin.url "https://${GITHUB_TOKEN}@github.com/paritytech/ink.git"
- git config remote.origin.url "git@github.com:/paritytech/${CI_PROJECT_NAME}.git"
- git config remote.origin.fetch "+refs/heads/*:refs/remotes/origin/*"
- git fetch origin gh-pages
# saving README and docs
Expand Down

0 comments on commit 2ee203d

Please sign in to comment.