Skip to content

Commit

Permalink
[terraform] Update credentials
Browse files Browse the repository at this point in the history
  • Loading branch information
driazati committed Feb 2, 2023
1 parent 8a18d95 commit 1013ee9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/jenkins_prepare.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,8 @@ jobs:
DOCKERHUB_TOKEN: ${{ secrets.DOCKERHUB_TOKEN }}
DOCKERHUB_TOKEN_TLCPACKSTAGING: ${{ secrets.DOCKERHUB_TOKEN_TLCPACKSTAGING }}
DOCKERHUB_TOKEN_TLCPACK: ${{ secrets.DOCKERHUB_TOKEN_TLCPACK }}
AWS_ACCESS_KEY_ID: ${{ secrets.JENKINS_AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.JENKINS_AWS_SECRET_ACCESS_KEY }}
AWS_ACCESS_KEY_ID: ${{ secrets.TERRAFORM_AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.TERRAFORM_AWS_SECRET_ACCESS_KEY }}
TQCHEN_CI_PAT: ${{ secrets.TQCHEN_CI_PAT }}
SCCACHE_BUCKET: ${{ secrets.SCCACHE_BUCKET }}
DOCS_PUSH_TOKEN: ${{ secrets.DOCS_PUSH_TOKEN }}
Expand All @@ -69,12 +69,12 @@ jobs:
-
name: Pull repository
uses: actions/checkout@v2
-
name: Source common environment variables to be used in ansible playbook
run: source ./scripts/common.sh
-
name: Pull Terraform state
run: ./scripts/pull_terraform_backend.sh
-
name: Source common environment variables to be used in ansible playbook
run: source ./scripts/common.sh
-
name: Write ansible key to file
run: echo "${{ secrets.GLOBAL_NODE_ACCESS_PRIVATE_KEY }}" > global_node_access_private_key
Expand Down
1 change: 1 addition & 0 deletions jenkins/scripts/pull_terraform_backend.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/bin/bash
set -euxo pipefail

export AWS_DEFAULT_REGION=us-west-2
aws s3 cp s3:https://tvm-ci-terraform-state/env:/tvm-ci-prod/tfstate .
Expand Down

0 comments on commit 1013ee9

Please sign in to comment.