Skip to content

Commit

Permalink
Create test-s3-cache.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
glegendre01 authored Dec 11, 2024
1 parent 82c24f7 commit 5e954be
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/test-s3-cache.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: test-s3

on:
workflow_dispatch:


permissions:

contents: read # Required to checkout repository.
id-token: write # Required to authenticate via OIDC.

jobs:
test:
runs-on:
group: aws-general-8-plus
steps:
- name: checkout
uses: actions/checkout@v4

- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v4
with:
aws-region: us-east-1
role-to-assume: ${{ secrets.AWS_ROLE_GITHUB_TGI_TEST }}

- name: S3 Write
run: |
aws s3 cp README.md s3://${{ secrets.AWS_S3_BUCKET_GITHUB_TGI_TEST }}
- name: S3 Read
run: |
aws s3 ls s3://${{ secrets.AWS_S3_BUCKET_GITHUB_TGI_TEST }}

0 comments on commit 5e954be

Please sign in to comment.