Skip to content

SWC-6624: test push to s3, dryrun #2

SWC-6624: test push to s3, dryrun

SWC-6624: test push to s3, dryrun #2

Workflow file for this run

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-reports s3://${{ env.destination_bucket }}/SynapseWebClient-${{ github.run_id }}/ --dryrun