Skip to content

Commit

Permalink
[jenkins] Add relax docs push token
Browse files Browse the repository at this point in the history
  • Loading branch information
driazati committed Jan 20, 2023
1 parent b276722 commit b627195
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/jenkins_prepare.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ jobs:
SCCACHE_BUCKET: ${{ secrets.SCCACHE_BUCKET }}
DOCS_PUSH_TOKEN: ${{ secrets.DOCS_PUSH_TOKEN }}
AWS_ACCOUNT_ID: ${{ secrets.AWS_ACCOUNT_ID }}
TVM_BOT_DOCS_GITHUB_TOKEN: ${{ secrets.TVM_BOT_GITHUB_TOKEN }}
steps:
-
name: Pull repository
Expand Down
8 changes: 8 additions & 0 deletions jenkins/ansible/roles/setup_jenkins_head/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,14 @@
group: 1000
mode: 0600

- name: octoml-relax-site-ci Github token
ansible.builtin.copy:
content: "{{ lookup('env', 'TVM_BOT_DOCS_GITHUB_TOKEN') }}"
dest: "/var/jenkins/keys/tvm_bot_docs_github_token"
owner: 1000
group: 1000
mode: 0600

- name: Discord Webhook URL
ansible.builtin.copy:
content: "{{ lookup('env', 'DISCORD_WEBHOOK_URL') }}"
Expand Down
4 changes: 4 additions & 0 deletions jenkins/docker/prod/base_config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,10 @@ credentials:
id: "dockerhub-tlcpack-key"
description: "aws account id"
secret: "${readFile:/key/dockerhub-tlcpack-key}"
- string:
id: "octoml-relax-docs-push-token"
description: "key for pushing docs to octoml/relax-site"
secret: "${readFile:/key/tvm_bot_docs_github_token}"
- gitHubApp:
appID: "281513"
id: "octoml-relax-ci"
Expand Down

0 comments on commit b627195

Please sign in to comment.