-
Notifications
You must be signed in to change notification settings - Fork 39
29 lines (28 loc) · 1.07 KB
/
push-s3-tmp.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
name: 'Test Push to S3'
on:
push:
branches: [SWC-6624]
env:
destination_bucket: e2e-reports-bucket-bucket-1p1qz6p48t4uy
jobs:
push-s3:
runs-on: ubuntu-latest
# Allow OIDC Integration (so we can assume the AWS role to deploy)
permissions:
id-token: write
contents: read
steps:
- name: checkout
uses: actions/checkout@v4
- name: Assume AWS Role
uses: aws-actions/configure-aws-credentials@v2
with:
aws-region: us-east-1
role-to-assume: arn:aws:iam::797640923903:role/sagebase-github-oidc-synapsedev-e2e-infra
role-session-name: GitHubActions-${{ github.repository_owner }}-${{ github.event.repository.name }}-${{ github.run_id }}
role-duration-seconds: 1200
- name: create test file
run: mkdir blob-report && echo test1 > ./blob-report/report-1.txt && echo test2 > ./blob-report/report-2.txt
- name: push to S3
run: |
aws --region us-east-1 s3 sync ./blob-reports s3://${{ env.destination_bucket }}/SynapseWebClient-${{ github.run_id }}/ --dryrun