Skip to content

Commit

Permalink
SWC-6624: test push to s3
Browse files Browse the repository at this point in the history
  • Loading branch information
hallieswan committed Dec 8, 2023
1 parent 2d4d582 commit d95894b
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/push-s3-tmp.yml
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::449435941126: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-report s3://${{ env.destination_bucket }}/SynapseWebClient-${{ github.run_id }}/

0 comments on commit d95894b

Please sign in to comment.