-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
SWC-6624: tmp commit, test push to s3, dryrun
- Loading branch information
1 parent
2d4d582
commit e0ea1ad
Showing
1 changed file
with
29 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,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 |