SWC-6624: test push to s3 #5
Workflow file for this run
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
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 s3 sync \ | |
./blob-report \ | |
--region us-east-1 | |
s3://${{ env.destination_bucket }}/SynapseWebClient-${{ github.run_id }}-${{ github.run_attempt }}/ |