Skip to content

Commit aa888d4

Browse files
ktx-abhishekmmosarafO2ktx-krupa
authored
move production changes to staging environment (#206)
* Replace access and secret key with assume role (#201) * Replase access and secret key with assume role * Replase access and secret key with assume role * Replace access and secret key with assume role * Replace access and secret key with assume role * Replace access and secret key with assume role * Updated runs on (#202) * fix: relative path issue in navbar (#205) --------- Co-authored-by: mmosarafO2 <[email protected]> Co-authored-by: ktx-krupa <[email protected]>
1 parent 3d8aabb commit aa888d4

File tree

2 files changed

+12
-8
lines changed

2 files changed

+12
-8
lines changed

.github/workflows/deploy-docs-staging.yaml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,10 @@ on:
77

88
jobs:
99
deploy:
10-
runs-on: ubuntu-latest
10+
runs-on: org-openobserve-standard-4
11+
permissions:
12+
id-token: write
13+
contents: read
1114

1215
steps:
1316
- name: Checkout source code
@@ -34,10 +37,9 @@ jobs:
3437
fi
3538
3639
- name: Configure AWS credentials
37-
uses: aws-actions/configure-aws-credentials@v2
40+
uses: aws-actions/configure-aws-credentials@v4
3841
with:
39-
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
40-
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
42+
role-to-assume: arn:aws:iam::325553860333:role/GitHubActionsRole
4143
aws-region: us-east-2 # or your preferred region
4244

4345
- name: Build MkDocs site

.github/workflows/deploy-docs.yaml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,10 @@ on:
77

88
jobs:
99
deploy:
10-
runs-on: ubuntu-latest
10+
runs-on: org-openobserve-standard-4
11+
permissions:
12+
id-token: write
13+
contents: read
1114

1215
steps:
1316
- name: Checkout source code
@@ -34,10 +37,9 @@ jobs:
3437
fi
3538
3639
- name: Configure AWS credentials
37-
uses: aws-actions/configure-aws-credentials@v2
40+
uses: aws-actions/configure-aws-credentials@v4
3841
with:
39-
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
40-
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
42+
role-to-assume: arn:aws:iam::325553860333:role/GitHubActionsRole
4143
aws-region: us-west-2 # or your preferred region
4244

4345
- name: Build MkDocs site

0 commit comments

Comments
 (0)