awscli is preinstalled in the image (#88) #37
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: Sync | |
on: | |
push: | |
branches: master | |
jobs: | |
sync: | |
runs-on: ubuntu-latest | |
permissions: | |
id-token: write | |
contents: read | |
steps: | |
- name: Configure AWS credentials | |
uses: aws-actions/configure-aws-credentials@v4 | |
with: | |
role-to-assume: ${{ secrets.AWS_SYNC_ROLE }} | |
role-session-name: github-action-sync | |
aws-region: ${{ secrets.AWS_REGION }} | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Sync content | |
run: | | |
aws s3 sync --content-type text/plain --metadata-directive REPLACE . s3://crowdsec-hub --exclude ".git/*" --exclude ".github/*" |