Skip to content

Commit

Permalink
Add sccache bucket secret
Browse files Browse the repository at this point in the history
This adds the secret to the config so apache/tvm#10246 will work
  • Loading branch information
driazati committed Feb 22, 2022
1 parent 9dcb207 commit 2f53d03
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/prepare.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ jobs:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
TQCHEN_CI_PAT: ${{ secrets.TQCHEN_CI_PAT }}
SCCACHE_BUCKET: ${{ secrets.SCCACHE_BUCKET }}
steps:
-
name: Pull repository
Expand Down
8 changes: 8 additions & 0 deletions ansible/roles/setup_jenkins_head/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,14 @@
group: 1000
mode: 0600

- name: sccache bucket creds
ansible.builtin.copy:
content: "{{ lookup('env', 'SCCACHE_BUCKET') }}"
dest: "/var/jenkins/keys/sccache_bucket"
owner: 1000
group: 1000
mode: 0600

- name: Base configuration for Jenkins
ansible.builtin.copy:
src: "{{ lookup('env', 'GITHUB_WORKSPACE') + '/docker/' + lookup('env', 'ENVIRONMENT') + '/base_config.yaml' }}"
Expand Down
4 changes: 4 additions & 0 deletions docker/prod/base_config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -148,3 +148,7 @@ credentials:
id: "tvm-bot-jenkins-reader"
description: "PAT for the tvm-bot user"
secret: "${readFile:/key/tvm_bot_token}"
- string:
id: "tvm-sccache-bucket"
description: "Sccache S3 bucket name"
secret: "${readFile:/key/sccache_bucket}"

0 comments on commit 2f53d03

Please sign in to comment.