Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/workflows/prepare.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ jobs:
TQCHEN_CI_PAT: ${{ secrets.TQCHEN_CI_PAT }}
SCCACHE_BUCKET: ${{ secrets.SCCACHE_BUCKET }}
DOCS_PUSH_TOKEN: ${{ secrets.DOCS_PUSH_TOKEN }}
AWS_ACCOUNT_ID: ${{ secrets.AWS_ACCOUNT_ID }}
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 @@ -91,6 +91,14 @@
group: 1000
mode: 0600

- name: aws account id
ansible.builtin.copy:
content: "{{ lookup('env', 'AWS_ACCOUNT_ID') }}"
dest: "/var/jenkins/keys/aws-account-id"
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 @@ -164,3 +164,7 @@ credentials:
id: "docs-push-token"
description: "docs push token"
secret: "${readFile:/key/docs-push-token}"
- string:
id: "aws-account-id"
description: "aws account id"
secret: "${readFile:/key/aws-account-id}"